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
Hi, I'm using v7.3.0, and encountering an error "Cannot read property 'filename' of undefined" - it looks like it's related to the epicfail check for 'require.main!.filename' in the create function. The Node docs say that when the entry point is not a CommonJS module, require.main is undefined -- and the entry point of my app is a module, not cjs.
Is there any way around this issue?
I went back to v7.1.0 and everything works. But there's been some nice additions since then, and I'd love to use the latest version.
Thanks!
The text was updated successfully, but these errors were encountered:
Should the value be passed into the create function from cli.js rather than commonJS being presumed?
Then, developers can choose to pass either require.main.filename or import.meta.url depending on whether they are using commonJS or ES modules.
Hi, I'm using v7.3.0, and encountering an error "Cannot read property 'filename' of undefined" - it looks like it's related to the epicfail check for 'require.main!.filename' in the create function. The Node docs say that when the entry point is not a CommonJS module, require.main is undefined -- and the entry point of my app is a module, not cjs.
Is there any way around this issue?
I went back to v7.1.0 and everything works. But there's been some nice additions since then, and I'd love to use the latest version.
Thanks!
The text was updated successfully, but these errors were encountered: