You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had used "@angular-builders/custom-webpack:dev-server" before to be able to use a TypeScript paths in webpack config, but we are now trying out module federation and I have to switch. Unfortunately, TypeScript paths does not work with "@nrwl/angular:module-federation-dev-server" and it prints:
> NX ⨯ Unable to compile TypeScript:
apps/project/webpack.config.ts:4:29 - error TS2307: Cannot find module '@project/app-info' or its corresponding type declarations.
4 import { releaseName } from "@project/app-info"
~~~~~~~~~~~~~~~~~~~~
apps/project/webpack.config.ts:5:30 - error TS2307: Cannot find module '@project/webpack' or its corresponding type declarations.
5 import { createConfig } from "@project/webpack"
~~~~~~~~~~~~~~~~~~~
apps/project/webpack.config.ts:7:48 - error TS7006: Parameter 'config' implicitly has an 'any' type.
7 export default createConfig("project", async (config) => {
~~~~~~
apps/project/webpack.config.ts:35:28 - error TS7016: Could not find a declaration file for module './module-federation.config'. '/Users/marvin/Developer/project/app/apps/project/module-federation.config.js' implicitly has an 'any' type.
35 const mfc = await import("./module-federation.config")
Expected Behavior
Same experience
GitHub Repo
No response
Steps to Reproduce
try to import a ts lib in your project into a ts webpack config
muuvmuuv
changed the title
Cannot use TypeScript in @angular-builders/custom-webpack:dev-server
Cannot use TypeScript Paths in @angular-builders/custom-webpack:dev-server
Mar 9, 2023
muuvmuuv
changed the title
Cannot use TypeScript Paths in @angular-builders/custom-webpack:dev-server
Cannot use TypeScript Paths in @nrwl/angular:module-federation-dev-server
Mar 9, 2023
Current Behavior
I had used "@angular-builders/custom-webpack:dev-server" before to be able to use a TypeScript paths in webpack config, but we are now trying out module federation and I have to switch. Unfortunately, TypeScript paths does not work with "@nrwl/angular:module-federation-dev-server" and it prints:
Expected Behavior
Same experience
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: