cloudflare / cloudflare/python-worker-hello-world

Module parse failed: Unexpected token (5:22)

オープン
#7 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
276
フォーク
46
PR マージ指標
30日以内にマージされた PR はありません

説明

Running on Windows 10. Performed the edits mentioned in issue #2
```
PS C:\Users\tarun\python-worker-hello-world> wrangler dev
👀 ./__target__/index.js 5:22
Module parse failed: Unexpected token (5:22)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| var __name__ = '__main__';
| export var handleRequest = function (request) {
> return new Response (, dict ([[, dict ([[, ]])]]));
| };
| addEventListener (, (function __lambda__ (event) {
@ ./index.py 1:0-38 1:0-38
Error: webpack returned an error. Try configuring `entry` in your webpack config relative to the current working directory, or setting `context = __dirname` in your webpack config.
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。