Hello, I am trying to get the quick start “Hello World” Dapp working and so far have got the canisters built and deployed locally (I have also deployed to the IC a different frontend only Dapp to the IC). I can see the frontend canister is working by putting http://127.0.0.1:8000/?canisterId=hozae-racaq-aaaaa-aaaaa-c into my browser but when I try to run npm start I am hit with errors. The output from the terminal is:
explore_hello_frontend@0.1.0 prestart /mnt/d/Videos/Documents/test/explore_hello
npm run copy:types
explore_hello_frontend@0.1.0 copy:types /mnt/d/Videos/Documents/test/explore_hello
rsync -avr .dfx/$(echo ${DFX_NETWORK:-‘'})/canisters/ --exclude=‘assets/’ --exclude=‘idl/’ --exclude=’.wasm’
–exclude='.most’ --delete src/declarations
sending incremental file listexplore_hello_backend/
explore_hello_backend/explore_hello_backend.old.did
explore_hello_frontend/
explore_hello_frontend/assetstorage.old.did
sent 4,352 bytes received 62 bytes 8,828.00 bytes/sec
total size is 23,469 speedup is 5.32
explore_hello_frontend@0.1.0 start /mnt/d/Videos/Documents/test/explore_hello
webpack serve --mode development --env development
No production canister_ids.json found. Continuing with local
[webpack-cli] /mnt/d/Videos/Documents/test/explore_hello/node_modules/webpack-dev-server/lib/getPort.js:13
const maxPort = 65_535;
^^
SyntaxError: Invalid or unexpected token
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load
(internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Function.getFreePort (/mnt/d/Videos/Documents/test/explore_hello/node_modules/webpack-dev-server/lib/Server.js:397:21)
at Server.start (/mnt/d/Videos/Documents/test/explore_hello/node_modules/webpack-dev-server/lib/Server.js:3245:40)
at process._tickCallback
(internal/process/next_tick.js:68:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! explore_hello_frontend@0.1.0 start: webpack serve --mode development --env development
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the explore_hello_frontend@0.1.0 start
script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/milo_welch/.npm/_logs/2022-11-07T20_52_47_491Z-debug.log
Any ideas as to how to fix this? Thanks