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
./node_modules/worktop/router/index.mjs 80:36-37
Can't import the named export 'parse' from non EcmaScript module (only default export is available)
at HarmonyImportSpecifierDependency._getErrors (C:\Users\billy\AppData\Local\.wrangler\wranglerjs-1.19.0\node_modules\webpack\lib\dependencies\HarmonyImportSpecifierDependency.js:88:6)
at HarmonyImportSpecifierDependency.getErrors (C:\Users\billy\AppData\Local\.wrangler\wranglerjs-1.19.0\node_modules\webpack\lib\dependencies\HarmonyImportSpecifierDependency.js:68:16)
at Compilation.reportDependencyErrorsAndWarnings (C:\Users\billy\AppData\Local\.wrangler\wranglerjs-1.19.0\node_modules\webpack\lib\Compilation.js:1463:22)
at C:\Users\billy\AppData\Local\.wrangler\wranglerjs-1.19.0\node_modules\webpack\lib\Compilation.js:1258:10
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\billy\AppData\Local\.wrangler\wranglerjs-1.19.0\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:24:1)
at AsyncSeriesHook.lazyCompileHook (C:\Users\billy\AppData\Local\.wrangler\wranglerjs-1.19.0\node_modules\tapable\lib\Hook.js:154:20)
at Compilation.finish (C:\Users\billy\AppData\Local\.wrangler\wranglerjs-1.19.0\node_modules\webpack\lib\Compilation.js:1253:28)
at C:\Users\billy\AppData\Local\.wrangler\wranglerjs-1.19.0\node_modules\webpack\lib\Compiler.js:672:17
at eval (eval at create (C:\Users\billy\AppData\Local\.wrangler\wranglerjs-1.19.0\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:11:1)
at C:\Users\billy\AppData\Local\.wrangler\wranglerjs-1.19.0\node_modules\webpack\lib\Compilation.js:1185:12
at C:\Users\billy\AppData\Local\.wrangler\wranglerjs-1.19.0\node_modules\webpack\lib\Compilation.js:1097:9
at processTicksAndRejections (internal/process/task_queues.js:75:11)
@ ./index.js
Error: webpack returned an error. You may be able to resolve this issue by running npm install.
The text was updated successfully, but these errors were encountered:
TLDR: webpack is intentionally annoying and employs its own variant of module loading, which is non spec-compliant and at this point, years in, they're just being stubborn about it. Their lack of proper .mjs support is widely known and there are a number of workarounds. A few options are found in the linked issue.
Version 0.7.0 and 0.7.1
wrangler dev
andwrangler publish
Result in:
The text was updated successfully, but these errors were encountered: