cloudflare / cobol-worker-template Goto Github PK
View Code? Open in Web Editor NEWA Cloudflare worker that runs COBOL.
License: Apache License 2.0
A Cloudflare worker that runs COBOL.
License: Apache License 2.0
name = "cobol-qsptm"
type = "webpack"
account_id = "[my account_id]"
workers_dev = true
route = ""
zone_id = "[my zone_id]"
webpack_config = "webpack.config.js"
wrangler generate cobol-qsptm https://github.com/xtuc/cobol-worker-template
cd cobol-qsptm
wrangler preview
:The preview working
npm WARN deprecated [email protected]: no longer maintained
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":"<8.10.0"} (current: {"node":"12.16.3","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/watchpack-chokidar2/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN @1.0.0 No repository field.
added 358 packages from 219 contributors and audited 360 packages in 13.088s
6 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
./src/index.js
Module not found: Error: Can't resolve '../build/out.js' in '/home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/src'
resolve '../build/out.js' in '/home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/src'
using description file: /home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
using description file: /home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/package.json (relative path: ./build/out.js)
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/build/out.js doesn't exist
.wasm
Field 'browser' doesn't contain a valid alias configuration
/home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/build/out.js.wasm doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
/home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/build/out.js.mjs doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/build/out.js.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/build/out.js.json doesn't exist
as directory
/home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/build/out.js doesn't exist
[/home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/build/out.js]
[/home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/build/out.js.wasm]
[/home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/build/out.js.mjs]
[/home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/build/out.js.js]
[/home/master/Documentos/Code/playground/cloudflare/cobol-qsptm/build/out.js.json]
@ ./src/index.js 1:0-32 14:4-6
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.
After running wrangler generate
with this template and running npm run dev
, the worker fails with a 500 status code.
Here's the error output:
"A hanging Promise was canceled. This happens when the worker runtime is waiting for a Promise from JavaScript to resolve, but has detected that the Promise cannot possibly ever resolve because all code and events related to the Promise\'s request context have already finished."
[2021-04-08 08:16:22] GET cloud-cobol.austin-crim.workers.dev/ HTTP/1.1 500 Internal Server Error
"Module.instantiateWasm callback failed with error: ReferenceError: wasm is not defined"
environment
macOS: 10.15.7
wrangler: 1.15.0
node: 14.16.0
npm: 6.14.11
docker: 20.10.5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.