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

module not found error #36

Open
JP-Jagadesan opened this issue May 25, 2023 · 1 comment
Open

module not found error #36

JP-Jagadesan opened this issue May 25, 2023 · 1 comment

Comments

@JP-Jagadesan
Copy link

I am using "@angular-architects/module-federation": "^14.3.14" version in angular application with a library named test and application named host. I used path mapping in angular tsconfig as below.

"paths": {
"test/": [
"projects/test/
",
"dist/test"
]
}
i am trying to access a module like import { TestModule } from 'test/first';
in my app.module and trying to render the library component in app.html.

Error: Module not found: Error: Can't resolve 'test/*' in 'E:\mfe\projects\host\src\app'.

image

I encountered this error only after introducing the webpack file. I suspect the webpack is not resolving the my path alias

@JP-Jagadesan
Copy link
Author

i have uploaded my sample application https://github.com/JP-Jagadesan/mfe/tree/master.

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

1 participant