-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Description
Hello @jasonsturges, I just updated the package to 2.0.2 and I am receiving this error below,
Collecting page data ...ReferenceError: exports is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/Users/douglasmendes/Git/xpertsea/web-insights/node_modules/lunarphase-js/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
at file:///Users/douglasmendes/Git/xpertsea/web-insights/node_modules/lunarphase-js/dist/index.cjs.js:1:36
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:430:15)
I think this change might be impacting the build for nextJS for production:
Renaming the file from index.cjs.js
to index.cjs
resolved the build issue successfully locally.
onildoaguiar
Metadata
Metadata
Assignees
Labels
No labels