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

Fixed issue #174 #175

Open
wants to merge 1 commit into
base: mainline2.0
Choose a base branch
from
Open

Conversation

GeneUNCG
Copy link

@GeneUNCG GeneUNCG commented Jul 1, 2023

Fixed issue #174

@Krxtopher Krxtopher self-requested a review July 3, 2023 22:14
@Krxtopher
Copy link
Contributor

Krxtopher commented Jul 3, 2023

@GeneUNCG, thanks for the contribution! I've reviewed and tested your PR. There's one problem I'm experiencing that is easy to fix. When I attempt to run npm run start-babylon I get the following error:

[webpack-cli] TypeError: cli.isMultipleCompiler is not a function
    at Command.<anonymous> (/Users/schultkr/Documents/Git/amazon-sumerian-hosts/node_modules/webpack-cli/node_modules/@webpack-cli/serve/lib/index.js:146:35)
    at async Promise.all (index 1)
    at async Command.<anonymous> (/Users/schultkr/Documents/Git/amazon-sumerian-hosts/node_modules/webpack-cli/lib/webpack-cli.js:1672:7)

This problem is resolved if, use a clean version of this branch, I:

  1. Delete the "package-lock.json" file at the root of the repo.
  2. Run npm install, thus generating a new "package-lock.json" file.
  3. Try running npm run start-babylon again.

Can you please regenerate that "package-lock.json" file and commit the new version as part of your PR?

P.S. I don't think you introduced this error. I noticed the problem was introduced with the latest commit in the "mainline2.0" branch.

@GeneUNCG
Copy link
Author

GeneUNCG commented Jul 5, 2023

@GeneUNCG, thanks for the contribution! I've reviewed and tested your PR. There's one problem I'm experiencing that is easy to fix. When I attempt to run npm run start-babylon I get the following error:

[webpack-cli] TypeError: cli.isMultipleCompiler is not a function
    at Command.<anonymous> (/Users/schultkr/Documents/Git/amazon-sumerian-hosts/node_modules/webpack-cli/node_modules/@webpack-cli/serve/lib/index.js:146:35)
    at async Promise.all (index 1)
    at async Command.<anonymous> (/Users/schultkr/Documents/Git/amazon-sumerian-hosts/node_modules/webpack-cli/lib/webpack-cli.js:1672:7)

This problem is resolved if, use a clean version of this branch, I:

  1. Delete the "package-lock.json" file at the root of the repo.
  2. Run npm install, thus generating a new "package-lock.json" file.
  3. Try running npm run start-babylon again.

Can you please regenerate that "package-lock.json" file and commit the new version as part of your PR?

P.S. I don't think you introduced this error. I noticed the problem was introduced with the latest commit in the "mainline2.0" branch.

Hey @Krxtopher, thank you for reviewing my PR. Yes, I am getting the same issue as you, even with a fresh clone of this repository. I modified this file online, but I can create a separate commit submitting the package-lock.json if you would like.

EDIT: I am unsure how to resolve this error, I am assuming we would need to update the webpack-cli package?

@Krxtopher
Copy link
Contributor

You shouldn't have to modify anything by hand. Just follow the steps I describe above, and then commit the new "package-lock.json" file that gets generated.

@trusktr
Copy link

trusktr commented Aug 27, 2023

I had this issue too, and it is not related to this pull request.

The best solution in my opinion is to pin the versions of webpack libs that we need until we're ready to explicitly update them. Here's a PR with the fix:

If that goes in first, this PR will work fine.

@theVoiceMouse
Copy link

npm update webpack-cli fixes this temporarily for anyone seeing the problem until this PR gets committed

@trusktr
Copy link

trusktr commented Oct 5, 2023

Also this branch,

removes the webpack build (only Karma testing still uses webpack because Karma is too old (no longer maintained) to understand JS modules, but the configuration is much simplified), converts to everything to vanilla JavaScript modules, and all the examples work without any build needed (just run a static web server with npm start). The only problem left to solve is to fix Babylon animations that broke with the Babylon v5+ upgrade:

After the Babylon fix, vanilla JS modules will be good to go.

This will make maintenance of sumerian easier; people can get started without annoying build/dependency hiccups, and people can bundle their apps any way they see fit on their end.

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

Successfully merging this pull request may close these issues.

4 participants