webOS icon indicating copy to clipboard operation
webOS copied to clipboard

Error when deployed with codespaces

Open om3ga6400 opened this issue 1 year ago • 11 comments

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 image

OS Version and platform info

  • Github Codespaces
  • Chrome

om3ga6400 avatar Sep 23 '24 13:09 om3ga6400

I got it to deploy to local host by removing the comma on line 14 or package.json

om3ga6400 avatar Sep 23 '24 13:09 om3ga6400

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"

ghost avatar Sep 25 '24 02:09 ghost

odd

om3ga6400 avatar Sep 25 '24 12:09 om3ga6400

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

Notplayingallday383 avatar Oct 01 '24 14:10 Notplayingallday383

also I fixed the issue with the NPM engines

Notplayingallday383 avatar Oct 01 '24 15:10 Notplayingallday383

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. (node:internal/modules/esm/module_job:96:40) at link (node:internal/modules/esm/module_job:95:36) { code: 'ERR_MODULE_NOT_FOUND' }

om3ga6400 avatar Oct 01 '24 17:10 om3ga6400

@Notplayingallday383

om3ga6400 avatar Oct 07 '24 15:10 om3ga6400

alright It should be fixed now. I forgot to update the deps lol

Notplayingallday383 avatar Oct 08 '24 12:10 Notplayingallday383

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)

Notplayingallday383 avatar Oct 09 '24 01:10 Notplayingallday383

Hey when I tried to deploy on cloudflare I got the same issue. I fixed it by just typing in "npm install"

88411 avatar Oct 10 '24 04:10 88411

Alternative

  1. First fork this repo
  2. Then go to Cloudflare.com and sign in
  3. Then on the left column select workers and pages
  4. After that click on create and then select pages (NOT workers)
  5. Select connect to git and connect your GitHub account.
  6. Then select the forked repo and click begin setup.

These next steps are very important:

DO NOT touch framework preset.

  1. For the build commands, type: "npm install" (The repo says to put "npm install && npm start" however this does not work)
  2. For output directory type: "static"
  3. 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

88411 avatar Oct 10 '24 04:10 88411