create icon indicating copy to clipboard operation
create copied to clipboard

Upgrading an existing project throws

Open alenaksu opened this issue 4 years ago • 4 comments

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

alenaksu avatar Aug 30 '21 18:08 alenaksu

I thought I was the only one with a problem

maopixin avatar Sep 24 '21 07:09 maopixin

Is there a fix for this?

harshunifi avatar May 04 '22 16:05 harshunifi

I have the same problem 😔

beratbayram avatar Oct 10 '22 12:10 beratbayram

I don't think this ever worked. Still having this issue in mid 2024 ...

sshmaxime avatar Apr 11 '24 22:04 sshmaxime