Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Babel error and fix #18

Open
WayneKeenan opened this issue Feb 21, 2021 · 0 comments
Open

Babel error and fix #18

WayneKeenan opened this issue Feb 21, 2021 · 0 comments

Comments

@WayneKeenan
Copy link

I ran into this error....

ERROR in ./_site/_templates/_process/js/script.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in /Users/wayne/local.projects/BubbleworksWebsite/node_modules/@babel/helper-compilation-targets/package.json
...
...
BT omitted

To get this ti work on macOS node version 14.4.0 I had to:

  1. Delete the initial node_modules folder

  2. delete package-lock.json

  3. Modify package.json

diff --git a/package.json b/package.json
index 166e8fd..065a362 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,7 @@
 {
   "name": "seventy",
   "version": "1.3.1",
+  "exports": true,
   "description": "Blogging template for the 11ty.io static site generator.",
   "scripts": {
     "start": "npm-run-all --parallel dev:*",
@@ -28,7 +29,7 @@
     "@11ty/eleventy-navigation": "^0.1.4",
     "@11ty/eleventy-plugin-rss": "^1.0.7",
     "@11ty/eleventy-plugin-syntaxhighlight": "^2.0.3",
-    "@babel/core": "^7.8.3",
+    "@babel/core": "^7.8.7",
     "@babel/plugin-proposal-async-generator-functions": "^7.8.3",
     "@babel/plugin-proposal-json-strings": "^7.8.3",
     "@babel/plugin-syntax-async-generators": "^7.8.4",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant