Getting Error While Using Python in Workers

i cloned https://github.com/cloudflare/python-worker-hello-world and installed all prerequisite ERROR in ./index.py 1:0-38 Module not found: Error: Can't resolve './targetindex.js' in 'C:\Users\mysel\OneDrive\Desktop\test\python-worker-hello-world' resolve './targetindex.js' in 'C:\Users\mysel\OneDrive\Desktop\test\python-worker-hello-world' using description file: C:\Users\mysel\OneDrive\Desktop\test\python-worker-hello-world\package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\mysel\OneDrive\Desktop\test\python-worker-hello-world\package.json (relative path: ./targetindex.js) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\mysel\OneDrive\Desktop\test\python-worker-hello-world__targetindex.js doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\mysel\OneDrive\Desktop\test\python-worker-hello-world__targetindex.js.js doesn't exist .json Field 'browser' doesn't contain a valid alias configuration C:\Users\mysel\OneDrive\Desktop\test\python-worker-hello-world__targetindex.js.json doesn't exist .wasm Field 'browser' doesn't contain a valid alias configuration C:\Users\mysel\OneDrive\Desktop\test\python-worker-hello-world__targetindex.js.wasm doesn't exist as directory C:\Users\mysel\OneDrive\Desktop\test\python-worker-hello-world__target__index.js doesn't exist webpack 5.76.0 compiled with 1 error in 1081 ms X [ERROR] Command failed with exit code 1: npm run build If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server