For those interested I was attempting to have storyboard with DDD-plugin, but for some reason the tsconfig.json thats is being passed is based on the project app name and not for the feature it self.
I encountered an error like this:
info => Using angular project 'admin' for configuring Storybook.
ERR! SyntaxError: Unexpected token } in JSON at position 223
ERR! at JSON.parse ()
ERR! at getTsConfigOptions (/node_modules/@storybook/angular/dist/server/angular-cli_config.js:41:25)
ERR! at Object.getAngularCliWebpackConfigOptions (/node_modules/@storybook/angular/dist/server/angular-cli_config.js:121:20)
ERR! at Object.webpackFinal (/node_modules/@storybook/angular/dist/server/framework-preset-angular-cli.js:8:56)
ERR! at /node_modules/@storybook/core/dist/server/presets.js:260:28
ERR! SyntaxError: Unexpected token } in JSON at position 223
ERR! at JSON.parse ()
ERR! at getTsConfigOptions (/node_modules/@storybook/angular/dist/server/angular-cli_config.js:41:25)
ERR! at Object.getAngularCliWebpackConfigOptions (/node_modules/@storybook/angular/dist/server/angular-cli_config.js:121:20)
ERR! at Object.webpackFinal (/node_modules/@storybook/angular/dist/server/framework-preset-angular-cli.js:8:56)
ERR! at /node_modules/@storybook/core/dist/server/presets.js:260:28
admin being my project app name
so I went through the process of trying to understand the problem with mytsconfig 's, and found out that it was pushing in the admintsconfig.json and not the lib feature one.
For those interested I was attempting to have storyboard with DDD-plugin, but for some reason the
tsconfig.json
thats is being passed is based on the project app name and not for the feature it self.I encountered an error like this:
admin
being my project app nameso I went through the process of trying to understand the problem with my
tsconfig
's, and found out that it was pushing in theadmin
tsconfig.json
and not the lib feature one.After searching a while I encountered this https://github.com/nrwl/nx/issues/2560#issuecomment-604652806 and added a new project both to nx.json and angular.json and it worked.
angular.json
Hope this helps someone.
To the maintainer not sure if you think of this as a bug / feature. so you decide if it should be closed.