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
Project built using @nx/angular:webpack-browser builder and
buildLibsFromSource set to false
have a custom webpack.
Build fails with error
> NX Unable to load /Users/arvindnama/repos/app-1/Users/arvindnama/repos/app-1/tmp/apps/app-1/tsconfig.generated.json: ENOENT: no such file or directory, stat '/Users/arvindnama/repos/app-1/Users/arvindnama/repos/app-1/tmp/apps/app-1i/tsconfig.generated.json'
Expected Behavior
Should be able to resolve the generated tsconfig and build the application
GitHub Repo
No response
Steps to Reproduce
mono repo with one app with custom webpack & atleast one buildable library that it depends on
app uses @nx/angular:webpack-browser with
a. buildLibsFromSource set to false
b. have a custom webpack. ( just empty custom webpack config file will also suffice)
Project built using @nx/angular:webpack-browser builder, with buildLibsFromSource set to false and a custom webpack configuration file
webpack-browser could not load the generated tsconfig files from temp folder.
when buildLibsFromSource is set to false the builder generated a new temporary tsconfig file (tsconfig.generated.json) with ts-paths of
all its dependant projects remapped to build JS files in dist folder.
Current Behavior
Project built using
@nx/angular:webpack-browser
builder andBuild fails with error
Expected Behavior
Should be able to resolve the generated tsconfig and build the application
GitHub Repo
No response
Steps to Reproduce
a. buildLibsFromSource set to false
b. have a custom webpack. ( just empty custom webpack config file will also suffice)
cmd:
sample project.json of the application
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
Project built using
@nx/angular:webpack-browser
builder, with buildLibsFromSource set to false and a custom webpack configuration filewebpack-browser could not load the generated tsconfig files from temp folder.
when buildLibsFromSource is set to false the builder generated a new temporary tsconfig file (
tsconfig.generated.json
) with ts-paths ofall its dependant projects remapped to build JS files in dist folder.
The path of the generated tsConfig file is a fully qualified path,
https://github.com/nrwl/nx/blob/master/packages/angular/src/builders/webpack-browser/webpack-browser.impl.ts#L81-L90 PR
#19451 introduces a change in webpack
(https://github.com/nrwl/nx/blob/master/packages/angular/src/builders/utilities/webpack.ts#L14) to join the tsConfig with workspace root
path and this is would result in file not found.
The text was updated successfully, but these errors were encountered: