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
error Failed to build.
error [rsbuild:html] Failed to resolve HTML template, please check if the file exists: /Users/manfredsteyer/projects/public/ng-rspack/src/index.html
Here is the entire stack trace:
at getTemplate (file:///Users/manfredsteyer/projects/public/ng-rspack/node_modules/@rsbuild/core/dist/index.js:3436:54)
at async file:///Users/manfredsteyer/projects/public/ng-rspack/node_modules/@rsbuild/core/dist/index.js:3478:95
at async Promise.all (index 0)
at async Object.handler (file:///Users/manfredsteyer/projects/public/ng-rspack/node_modules/@rsbuild/core/dist/index.js:3459:227)
at async Object.callInEnvironment (file:///Users/manfredsteyer/projects/public/ng-rspack/node_modules/@rsbuild/core/dist/index.js:2388:30)
at async modifyBundlerChain (file:///Users/manfredsteyer/projects/public/ng-rspack/node_modules/@rsbuild/core/dist/index.js:4955:124)
at async generateRspackConfig (file:///Users/manfredsteyer/projects/public/ng-rspack/node_modules/@rsbuild/core/dist/index.js:5116:248)
at async Promise.all (index 0)
at async initConfigs (file:///Users/manfredsteyer/projects/public/ng-rspack/node_modules/@rsbuild/core/dist/index.js:5250:25)
at async createCompiler_createCompiler (file:///Users/manfredsteyer/projects/public/ng-rspack/node_modules/@rsbuild/core/dist/index.js:6352:52)
at async build_build (file:///Users/manfredsteyer/projects/public/ng-rspack/node_modules/@rsbuild/core/dist/index.js:6405:22)
at async Object.build (file:///Users/manfredsteyer/projects/public/ng-rspack/node_modules/@rsbuild/core/dist/index.js:6976:29)
at async Command.<anonymous> (file:///Users/manfredsteyer/projects/public/ng-rspack/node_modules/@rsbuild/core/dist/index.js:7081:41)
The text was updated successfully, but these errors were encountered:
If you have and this is still occurring there may need to be a way to normalize the path regardless of where npx rsbuild is called from, which is the real root cause here.
Hi, I'm also having a project in a sub directory. I use the root option, but I'm not sure what exactly this option should do. As @Coly010 stated, it should be the root for rsbuild. But for me, rsbuild always looks for the tsconfig.app.json in the cwd and not in the root directory. Is this the expected behaviour?
Thus, I always have to set the tsconfigPath option or cd into the project directory.
I have an Angular CLI workspace with several projects. When compiling one of them using
I get this error message:
Here is the entire stack trace:
The text was updated successfully, but these errors were encountered: