storybookjs/storybook
View on GitHub[Bug]: Using webworkers (angular) results in a broken build. All errors being typescript related
Open
#20,856 opened on Jan 31, 2023
angularbughas workaroundhelp wantedsev:S3typescript
Description
Describe the bug
Needing to use webworkers using a dedicated web worker file requires declaring <reference lib="webworker" /> atop your own code. By making that declaration, the entire build breaks on running npm run storybook. I have created a barebones repo to reproduce the bug
To Reproduce
https://github.com/nikhilnxvverma1/angular-storybook-webworker-bug
System
Environment Info:
System:
OS: macOS 11.6.8
CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
Binaries:
Node: 18.10.0 - /usr/local/bin/node
npm: 8.19.2 - /usr/local/bin/npm
Browsers:
Chrome: 109.0.5414.119
Firefox: 109.0
Safari: 15.6.1
npmPackages:
@storybook/addon-actions: ^6.5.16 => 6.5.16
@storybook/addon-essentials: ^6.5.16 => 6.5.16
@storybook/addon-interactions: ^6.5.16 => 6.5.16
@storybook/addon-links: ^6.5.16 => 6.5.16
@storybook/angular: ^6.5.16 => 6.5.16
@storybook/builder-webpack5: ^6.5.16 => 6.5.16
@storybook/manager-webpack5: ^6.5.16 => 6.5.16
@storybook/testing-library: ^0.0.13 => 0.0.13
Additional context
I have made all the relevant configurations in angular.json including the webworkerTsconfig file