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

missing/conflicting development dependencies #81

Open
cathaychris opened this issue Oct 5, 2021 · 0 comments · May be fixed by #82
Open

missing/conflicting development dependencies #81

cathaychris opened this issue Oct 5, 2021 · 0 comments · May be fixed by #82

Comments

@cathaychris
Copy link

I'd like to play around with developing the frontend for a custom application.

However, following the readme and installing in an environment usingnpm at 7.24.2 and node at 14.18.0 produces conflicts with the development dependencies.
In particular, with webpack-dev-server, which at ^3.1.14 requires webpack-cli at ^3.1.0, which is not locked in package-lock.json or referenced in package.json or anywhere in this repository. (Technically, webpack-cli also requires webpack>4, which is pinned to ^3.12.0 in this repository.)

Without webpack-cli, trying to run npm run dev and thereby webpack-dev-server will throw an error requesting the CLI, https://github.com/webpack/webpack-dev-server/blob/v3.1.14/bin/webpack-dev-server.js#L71.

Installing a later webpack (>=4) results in a completely different syntax for the webpack config file, so that's clearly now how this repo has been developed in this snapshot.

Installing webpack-cli at 3.1.0 and ignoring peer dependencies (to avoid the webpack>4 requirement) and running webpack gives an obscure error, TypeError: Cannot destructure property 'compile' of 'compiler.hooks' as it is undefined. Probably there is a version conflict, somewhere. Other versions of the CLI produce different errors.

It would be helpful if anybody with a working development environment could share the environment specifics and resolutions to the missing and conflicting dependencies.

@cathaychris cathaychris linked a pull request Oct 6, 2021 that will close this issue
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 a pull request may close this issue.

1 participant