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
At this point the Cloudflare Workers development environment starts up and serves your API at 127.0.0.1:8787. Everything works as expected.
In the same directory:
npm install worktop@0.7.0 (or 0.7.1-0.7.3)
wrangler dev
Wrangler fails with the following:
➜ ~ wrangler dev
👀 ./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 (/Users/rob/Library/Caches/.wrangler/wranglerjs-1.19.0/node_modules/webpack/lib/dependencies/HarmonyImportSpecifierDependency.js:88:6)
at HarmonyImportSpecifierDependency.getErrors (/Users/rob/Library/Caches/.wrangler/wranglerjs-1.19.0/node_modules/webpack/lib/dependencies/HarmonyImportSpecifierDependency.js:68:16)
at Compilation.reportDependencyErrorsAndWarnings (/Users/rob/Library/Caches/.wrangler/wranglerjs-1.19.0/node_modules/webpack/lib/Compilation.js:1463:22)
at /Users/rob/Library/Caches/.wrangler/wranglerjs-1.19.0/node_modules/webpack/lib/Compilation.js:1258:10
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/rob/Library/Caches/.wrangler/wranglerjs-1.19.0/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:24:1)
at AsyncSeriesHook.lazyCompileHook (/Users/rob/Library/Caches/.wrangler/wranglerjs-1.19.0/node_modules/tapable/lib/Hook.js:154:20)
at Compilation.finish (/Users/rob/Library/Caches/.wrangler/wranglerjs-1.19.0/node_modules/webpack/lib/Compilation.js:1253:28)
at /Users/rob/Library/Caches/.wrangler/wranglerjs-1.19.0/node_modules/webpack/lib/Compiler.js:672:17
at eval (eval at create (/Users/rob/Library/Caches/.wrangler/wranglerjs-1.19.0/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1)
at /Users/rob/Library/Caches/.wrangler/wranglerjs-1.19.0/node_modules/webpack/lib/Compilation.js:1185:12
at /Users/rob/Library/Caches/.wrangler/wranglerjs-1.19.0/node_modules/webpack/lib/Compilation.js:1097:9
at processTicksAndRejections (internal/process/task_queues.js:77:11)
@ ./index.js
Error: webpack returned an error. You may be able to resolve this issue by running npm install.
Versions where issue observed:
OS: macOS Big Sur v11.5.2
Chip: Apple M1
Node.js: v14.17.6 (latest LTS at time of filing issue), v15.14.0
Wrangler: v1.19.0, v1.19.2
Worktop: v0.7.0, v0.7.1, v0.7.2, v0.7.3
Second machine (I don't have access to get complete version info):
OS: macOS
Chip: Intel
Node.js: v16.4.0
The text was updated successfully, but these errors were encountered:
The problem is webpack. It ships non-standard "exports"and ESM resolvers and they won't fix it. It works in/with all other bundlers. See #62 and #73 for solution(s)
Sorry for the trouble, but everything is defined correctly. Closing as duplicate.
Projects created with wrangler and worktop v0.7.0 and greater fail to run on macOS (Apple M1 and Intel). Details and steps to reproduce follow.
The problem appears to be related to:
Steps to recreate
In an empty directory:
npm init --yes
wrangler init
npm install worktop@0.6.3
wrangler dev
At this point the Cloudflare Workers development environment starts up and serves your API at 127.0.0.1:8787. Everything works as expected.
In the same directory:
npm install worktop@0.7.0
(or 0.7.1-0.7.3)wrangler dev
Wrangler fails with the following:
Versions where issue observed:
Second machine (I don't have access to get complete version info):
The text was updated successfully, but these errors were encountered: