You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to build this on node 12 and 14, in both the versions I see the following error on npm run build.
> parcel build index.html lessons/**/*.html applications/**/*.html
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /Users/adityad/Proj-Root/rx-js-fem/rxjs-fundamentals/node_modules/weak-lru-cache/index.js
require() of ES modules is not supported.
require() of /Users/adityad/Proj-Root/rx-js-fem/rxjs-fundamentals/node_modules/weak-lru-cache/index.js from /Users/adityad/Proj-Root/rx-js-fem/rxjs-fundamentals/node_modules/lmdb-store/caching.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/bsd/Proj/rx-js-fem/rxjs-fundamentals/node_modules/weak-lru-cache/package.json.
The text was updated successfully, but these errors were encountered:
I tried to build this on node 12 and 14, in both the versions I see the following error on
npm run build
.The text was updated successfully, but these errors were encountered: