cloudflare / cloudflare/python-worker-hello-world
Module parse failed: Unexpected token (5:22)
- Vorherrschende Sprache
- JavaScript
- Sterne
- 276
- Forks
- 46
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.