-
-
Notifications
You must be signed in to change notification settings - Fork 94
App Crash while starting #67
Comments
This seems like an unexpected error. Is the non-dev version working (step 8) in docs. Also, I think you might have added an unexpected character somewhere in the code. Could you run the |
Step 8: $ npm run build-client
Creating an optimized production build... File sizes after gzip: 427.35 kB build/static/js/main.7039773b.js The project was built assuming it is hosted at /manage/. The build folder is ready to be deployed. Find out more about deployment here: djpanda@web:/var/www/short.webport.at/public_html$ npm start
[nodemon] 2.0.20 SyntaxError: Unexpected token '.' |
THe only files i altered are the ones in the docs. |
Server/.env Optional: Port to run backend server onPORT=4000 Format Detailshttps://www.prisma.io/docs/reference/database-reference/connection-urlsDATABASE_URL="mysql://pschkodrt:z10zq3CLD%8g07RFvaYFU8cYX6s9z%96@localhost:3306/shortpckd?schema=public&pool_timeout=0" Format: 16 digit alphanumric codeIPREGISTRY_API_KEY="bafluzh969ph3ky9" eg: hm1y2wq1pzckJWT_SECRET="zH9aKb!d2VO!" Optional: If you are running behind a proxy, enable this so the backend gets the correct IP.Format: "true"/"false" or the proxy IP(s)TRUST_PROXY="true" Alphanumerics and Numbers Changed, position switched and the Symbols too, but thats the .env nearest without giving out my secrets ^^ |
client/.env unchanged |
$ sudo git restore .
Creating an optimized production build... File sizes after gzip: 427.35 kB build/static/js/main.7039773b.js The project was built assuming it is hosted at /manage/. The build folder is ready to be deployed. Find out more about deployment here: $ npm start
[nodemon] 2.0.20 SyntaxError: Unexpected token '.' |
npm start
[nodemon] 2.0.20
[nodemon] to restart at any time, enter
rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting
node src/.
/var/www/short.webport.at/public_html/server/src/utils/isp.js:11
type: data?.company?.type,
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/var/www/short.webport.at/public_html/server/src/utils/hitInsert.js:1:13)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
[nodemon] app crashed - waiting for file changes before starting...
The text was updated successfully, but these errors were encountered: