seven
seven copied to clipboard
Babel error and fix
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:
-
Delete the initial
node_modules
folder -
delete
package-lock.json
-
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",