-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Module not found: Error: Can't resolve #6058
Comments
Where is you module named |
It is defined in common.js and common.d.ts common.d.ts
common.js
|
webpack doesn't support named AMD modules. You have to use file based naming with anonymous |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
BUG
What is the current behavior?
Cannot resolve AMD module with d.ts and index file (re-export)
If the current behavior is a bug, please provide the steps to reproduce.
NA
What is the expected behavior?
Able to resolve amd re-exported modules.
If this is a feature request, what is motivation or use case for changing the behavior?
N/A
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
"awesome-typescript-loader": "3.2.1",
"ts-loader": "3.2.0",
"clean-webpack-plugin": "0.1.17",
"file-loader": "^0.11.2",
"html-loader": "^0.5.1",
"html-webpack-plugin": "2.30.1",
"webpack": "3.8.1",
"webpack-dev-server": "2.9.3",
"webpack-merge": "4.1.1",
Issue in Detail:
I have a custom library that I want to include in my build, this library was created with typescript and AMD modules. I'm also using an index file to re-export stuff and the import everything with something like:
I have the following project structure:
My webpack.config:
I tried with ts-loader and awesome-typescript-loader with no luck.
The text was updated successfully, but these errors were encountered: