Error when deployed with codespaces
Error Code and/or Error Message npm error code EJSONPARSE npm error path /workspaces/webOS/package.json npm error JSON.parse Expected double-quoted property name in JSON at position 328 while parsing near "...npm" : ">=8.7.0",\n },\n "author": "snoo..." npm error JSON.parse Failed to parse JSON data. npm error JSON.parse Note: package.json must be actual JSON, not just JavaScript. npm error A complete log of this run can be found in: /home/codespace/.npm/_logs/2024-09-23T13_44_32_526Z-debug-0.log
Screenshots
OS Version and platform info
- Github Codespaces
- Chrome
I got it to deploy to local host by removing the comma on line 14 or package.json
Hey I already figured out the comma trick like you did, but for some reason I get an error that says "Cannot GET /sw/hvtrs8%252F-ymuvu%60e,cmm"
odd
Hey I already figured out the comma trick like you did, but for some reason I get an error that says "Cannot GET /sw/hvtrs8%252F-ymuvu%60e,cmm"
hmm let me look into this
also I fixed the issue with the NPM engines
also I fixed the issue with the NPM engines
I got a new error now
node:internal/modules/esm/resolve:854 throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null); ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@tomphttp/bare-server-node' imported from /workspaces/webOS/index.js
at packageResolve (node:internal/modules/esm/resolve:854:9)
at moduleResolve (node:internal/modules/esm/resolve:927:18)
at defaultResolve (node:internal/modules/esm/resolve:1169:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:540:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:509:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:239:38)
at ModuleWrap.
@Notplayingallday383
alright It should be fixed now. I forgot to update the deps lol
btw im gonna push out a fix to the proxy tmr so update your fork/instance once I push that (ill mention it in the commit description which makes it show up here)
Hey when I tried to deploy on cloudflare I got the same issue. I fixed it by just typing in "npm install"
Alternative
- First fork this repo
- Then go to Cloudflare.com and sign in
- Then on the left column select workers and pages
- After that click on create and then select pages (NOT workers)
- Select connect to git and connect your GitHub account.
- Then select the forked repo and click begin setup.
These next steps are very important:
DO NOT touch framework preset.
- For the build commands, type: "npm install" (The repo says to put "npm install && npm start" however this does not work)
- For output directory type: "static"
- Then click save and deploy and cross your fingers that everything goes well
After it builds it will provide you with a link and your good to go.
Also if for some reason you can't figure it out here is my link I got from following those exact steps "https://webos2-d9d.pages.dev/" By the time you are reading this it might be blocked tho idk
GL