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
Cannot find module with typescript and utility module #609
Comments
Hi @kbrah, good question. The problemWith single-spa microfrontends, each microfrontend is an in-browser module, but not necessarily a build-time module. Typescript does everything at build-time (not in-browser), so it doesn't know where to find your utility module. Two options for solutions
Other resources
I'm closing this since I believe to have answered the question, but feel free to comment further or reopen. |
|
Hi @joeldenning, I cannot make the error disapear creating a |
|
I have root project, one app and one utility module. When I import a component from the utility module in app module it works fine, but for some reason tsserver says cannot find module or its corresponding type declarations. All of the mentioned projects are using Typescript. Any idea how to fix this?
My root project webpack.config.js
My utility and module webpack.config.js are default config from
webpack-config-single-spa-react-ts
root tsconfig
app tsconfig
utility tsconfig
my root index.ejs
The text was updated successfully, but these errors were encountered: