Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading an existing project throws #58

Open
alenaksu opened this issue Aug 30, 2021 · 4 comments
Open

Upgrading an existing project throws #58

alenaksu opened this issue Aug 30, 2021 · 4 comments

Comments

@alenaksu
Copy link

alenaksu commented Aug 30, 2021

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
@maopixin
Copy link

I thought I was the only one with a problem

@harshunifi
Copy link

Is there a fix for this?

@beratbayram
Copy link

I have the same problem 😔

@sshmaxime
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants