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
If you have a package that uses ESM + relative imports without .js extension, ex:
export*from'./utils'
ncc will think that it can't find utils and produce eval("require")("./utils"), resulting in "ReferenceError: require is not defined in ES module scope".
The text was updated successfully, but these errors were encountered:
For some strange reason it does still work with ncc 0.36.0.
On another project https://github.com/marcofranssen/setup-kubectl it works flawless. I have been comparing both my projects like crazy, I can't find the reason why it isn't working in one of the projects.
Tried with and without type: "module" in package.json.
If you have a package that uses ESM + relative imports without .js extension, ex:
ncc will think that it can't find utils and produce
eval("require")("./utils")
, resulting in "ReferenceError: require is not defined in ES module scope".The text was updated successfully, but these errors were encountered: