-
-
Notifications
You must be signed in to change notification settings - Fork 319
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 file extensions are breaking webpack-dev-middleware #197
Comments
Nevermind, it was my fault, I just needed to add |
When using this module with an Angular CLI project, I got this error:
In Angular CLI project you cannot edit the webpack configuration to resolve |
@marlon360, then that's an issue with Angular or your Angular config. The CommonJS spec explicitly says module identifiers should not include an extension. And in Node.js the |
Ah, thanks @broofa, for a moment I thought this was an issue with mime. I've fixed my webpack 👍 |
If you don't want to or not able to edit the Webpack configuration, you can install my wrapper: https://github.com/marlon360/mime-wrapper |
Doing hot reload of node server that runs webpack-dev-middleware. It depends on mime and in the index.js of mime it imports some json files in types with no extension. If I add the .json extension it works. Can these be added please?
The text was updated successfully, but these errors were encountered: