create
create copied to clipboard
Upgrading an existing project throws
Hello everybody,
I'm trying to add storybook to an App project I previously initialized using the CLI, but it throws the following error:
$ npm init @open-wc
npx: installed 58 in 0.961s
_.,,,,,,,,,._
.d'' ``b. Open Web Components Recommendations
.p' Open `q.
.d' Web Components `b. Start or upgrade your web component project with
.d' `b. ease. All our recommendations at your fingertips.
:: ................. ::
`p. .q'
`p. open-wc.org .q'
`b. @openWc .d'
`q.. ..,' See more details at https://open-wc.org/init/
'',,,,,,,,,,''
Note: you can exit any time with Ctrl+C or Esc
✔ What would you like to do today? › Upgrade an existing project
✔ What would you like to add? › Demoing (storybook)
✔ Would you like to use typescript? › Yes
✔ What is the tag name of your web component? … my-component
ReferenceError: template:3
1| {
2| "scripts": {
>> 3| "storybook": "tsc && <%= scriptRunCommand %> analyze --exclude dist && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds -c .storybook/server.mjs\"",
4| "storybook:build": "tsc && <%= scriptRunCommand %> analyze --exclude dist && build-storybook"
5| },
6| "devDependencies": {
scriptRunCommand is not defined
I thought I was the only one with a problem
Is there a fix for this?
I have the same problem 😔
I don't think this ever worked. Still having this issue in mid 2024 ...