Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
407 views
in Technique[技术] by (71.8m points)

javascript - SyntaxError: Unexpected token ] in JSON at position 550 - Storybook with Angular

I'm trying to add a storybook to my project but I get this error

Adding Storybook support to your "Angular" app SyntaxError: Unexpected token ] in JSON at position 550 at JSON.parse () at readFileAsJson (C:UsersMarouenAppDataRoaming pm-cache_npx17500 [email protected]:60:15) at getAngularAppTsConfigJson (C:UsersMarouenAppDataRoaming pm-cache_npx17500 [email protected]:47:38) at editAngularAppTsConfig (C:UsersMarouenAppDataRoaming pm-cache_npx17500 [email protected]:23:70) at generator (C:UsersMarouenAppDataRoaming pm-cache_npx17500 [email protected]:52:3) at runGenerator (C:UsersMarouenAppDataRoaming pm-cache_npx17500 [email protected]:162:37) at installStorybook (C:UsersMarouenAppDataRoaming pm-cache_npx17500 [email protected]:206:10) at _default (C:UsersMarouenAppDataRoaming pm-cache_npx17500 [email protected]:277:10) at Command. (C:UsersMarouenAppDataRoaming pm-cache_npx17500 [email protected]:34:566) at Command.listener [as _actionHandler] (C:UsersMarouenAppDataRoaming pm-cache_npx17500 ode_modules@storybookcli ode_modulescommanderindex.js:413:31)

When I try to start

npx -p @storybook/cli sb init

I checked the Angular.json with a JSON linter and the file is validated! Does anyone know how to solve this??

question from:https://stackoverflow.com/questions/65848364/syntaxerror-unexpected-token-in-json-at-position-550-storybook-with-angular

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...