Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET /_next/webpack-hmr 404 #187

Open
flckv opened this issue Oct 11, 2023 · 1 comment
Open

GET /_next/webpack-hmr 404 #187

flckv opened this issue Oct 11, 2023 · 1 comment

Comments

@flckv
Copy link

flckv commented Oct 11, 2023

I ran npx serve . at .../aws_sumerian/packages/amazon-sumerian-hosts-three

I receive error:

 HTTP  10/11/2023 11:06:51 AM ::1 Returned 404 in 0 ms
 HTTP  10/11/2023 11:06:51 AM ::1 GET /_next/webpack-hmr

I did the AWS-Infrastructure-Setup.md step, where I added: const cognitoIdentityPoolId = '....';
module.exports = cognitoIdentityPoolId; in .../aws_sumerian/demo-credentials.js

@trusktr
Copy link

trusktr commented Oct 13, 2023

Hello @flckv, you may have better luck trying to run the version of amazon-sumerian-hosts where I've removed the Webpack build and everything runs as native JS modules in the browser, in this branch:

#183

The amazing thing about the vanilla ESM setup is that random issues, like what you have related to the Webpack build tool, are a thing of the past. Plain JS modules will work in any browser, forever. :)

You can clone that fork, then you can run the following, and it will simply work:

npm install
npx serve .

Additionally, if you look at the package.json scripts, you'll see start-three, which does the same thing you did (but using the five-server package instead of the serve package).

All code in that branch is plain JavaScript, requires no build at all (unless you want to produce TypeScript declaration files for the Babylon lib, in which case the npm run build script will generate .d.ts file, but it will not build any JS), and runs in a browser as-is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants