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
Describe the bug
It seems like the recent changes (#14358) to the angular configuration detection broke something on windows.
This makes the current prerelease version unusable on windows.
If I try to run storybook in a new angular project I get the following error:
info => Using angular project "storybook-test" for configuring Storybook
ERR! => Could not get angular cli webpack config
ERR! Error: Error: ENOENT: no such file or directory, lstat 'C:/C/work/storybook-test/tsconfig.app.json'
ERR! at Object.lstatSync (fs.js:1077:3)
ERR! at NodeJSFileSystem.NodeJSReadonlyFileSystem.lstat (C:\work\storybook-test\node_modules\@angular\compiler-cli\src\ngtsc\file_system\src\node_js_file_system.js:107:23)
ERR! at calcProjectFileAndBasePath (C:\work\storybook-test\node_modules\@angular\compiler-cli\src\perform_compile.js:127:33)
ERR! at Object.readConfiguration (C:\work\storybook-test\node_modules\@angular\compiler-cli\src\perform_compile.js:161:22)
ERR! at Object.readTsconfig (C:\work\storybook-test\node_modules\@angular-devkit\build-angular\src\utils\read-tsconfig.js:26:29)
ERR! at C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:155:67
ERR! at step (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:69:23)
ERR! at Object.next (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:50:53)
ERR! at C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:44:71
ERR! at new Promise (<anonymous>)
ERR! at __awaiter (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:40:12)
ERR! at buildWebpackConfigOptions (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:135:12)
ERR! at Object.<anonymous> (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:196:42)
ERR! at step (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:69:23)
ERR! at Object.next (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:50:53)
ERR! at C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:44:71
ERR!
ERR! at Object.readTsconfig (C:\work\storybook-test\node_modules\@angular-devkit\build-angular\src\utils\read-tsconfig.js:28:15)
ERR! at C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:155:67
ERR! at step (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:69:23)
ERR! at Object.next (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:50:53)
ERR! at C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:44:71
ERR! at new Promise (<anonymous>)
ERR! at __awaiter (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:40:12)
ERR! at buildWebpackConfigOptions (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:135:12)
ERR! at Object.<anonymous> (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:196:42)
ERR! at step (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:69:23)
ERR! at Object.next (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:50:53)
ERR! at C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:44:71
ERR! at new Promise (<anonymous>)
ERR! at __awaiter (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:40:12)
ERR! at Object.extractAngularCliWebpackConfig (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\angular-devkit-build-webpack.js:190:12)
ERR! at Object.<anonymous> (C:\work\storybook-test\node_modules\@storybook\angular\dist\ts3.9\server\framework-preset-angular-cli.js:106:73)
To Reproduce
ng new storybook-test
cd storybook-test
npx sb@next init
npm run storybook
Additional context
I am not 100% sure that this is related to windows, because I didn't have time to test it on mac/linux yet, but looking at the error (C:/C/work/storybook-test/tsconfig.app.json) it seems to be related to the file resolution on windows.
The text was updated successfully, but these errors were encountered:
Describe the bug
It seems like the recent changes (#14358) to the angular configuration detection broke something on windows.
This makes the current prerelease version unusable on windows.
If I try to run storybook in a new angular project I get the following error:
To Reproduce
System
Additional context
I am not 100% sure that this is related to windows, because I didn't have time to test it on mac/linux yet, but looking at the error (
C:/C/work/storybook-test/tsconfig.app.json
) it seems to be related to the file resolution on windows.The text was updated successfully, but these errors were encountered: