examples icon indicating copy to clipboard operation
examples copied to clipboard

frontend JS source maps are broken

Open johnkruger37 opened this issue 4 years ago • 2 comments

dfx new first && cd first && npm install && dfx deploy

Deploying all canisters.
All canisters have already been created.
Building canisters...
Building frontend...
Installing canisters...
(...)
  /index.js.map 1/1 (952215 bytes)
  /index.js.map (gzip) 1/1 (254247 bytes)
Deployed canisters.

http://localhost:8000/?canisterId=ryjl3-tyaaa-aaaaa-aaaba-cai

Firefox F12 Consle:

Source map error: Error: request failed with status 500
Resource URL: http://localhost:8000/index.js
Source Map URL: index.js.map

From what little I understand about this, the build did seem to produce source maps, but for some reason they're not found; not sure what's missing.

johnkruger37 avatar Jun 06 '21 11:06 johnkruger37

PS: I realized this isn't strictly about the examples repo, but it's not clear to me yet where else to file this - which repo has the source for what dfx new produces?

johnkruger37 avatar Jun 06 '21 11:06 johnkruger37

I have the same problem. Try the command dfx canister install --all --mode reinstall after the start. Canister problem. The front end eventually earned

fury02 avatar Jun 08 '21 13:06 fury02