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

npm init @open-wc generated project is not working #2776

Open
datdoan opened this issue Feb 8, 2024 · 1 comment
Open

npm init @open-wc generated project is not working #2776

datdoan opened this issue Feb 8, 2024 · 1 comment

Comments

@datdoan
Copy link

datdoan commented Feb 8, 2024

Expected behavior

After npm init @open-wc

Note: you can exit any time with Ctrl+C or Esc
√ What would you like to do today? » Scaffold a new project
√ What would you like to scaffold? » Application
√ What would you like to add? » Linting (eslint & prettier), Testing (web-test-runner), Demoing (storybook), Building (rollup)
√ Would you like to use typescript? » Yes
√ What is the tag name of your app shell element? ... test-ui

./
├── test-ui/
│ ├── .storybook/
│ │ ├── main.js
│ │ └── server.mjs
│ ├── .vscode/
│ │ └── extensions.json
│ ├── .editorconfig
│ ├── index.html
│ ├── LICENSE
│ ├── README.md
│ ├── rollup.config.js
│ ├── web-dev-server.config.mjs
│ └── web-test-runner.config.mjs
├── test-ui.gitignore
├── test-ui\assets\open-wc-logo.svg
├── test-ui\custom-elements.json
├── test-ui\package.json
├── test-ui\src\test-ui.ts
├── test-ui\stories\test-ui.stories.ts
├── test-ui\test\test-ui.test.ts
└── test-ui\tsconfig.json

√ Do you want to write this file structure to disk? » Yes
Writing..... done
√ Do you want to install dependencies? » Yes, with npm

And cd into project and run npm start should start

Actual Behavior

Run npm start display @tyes errors with:
image

Additional context

Node * NPM: 14.21.3,
Windows & Mac OS

Which packages and versions are you using.

@datdoan
Copy link
Author

datdoan commented Feb 8, 2024

I've updated the .tsconfig with to fix the issue:

{
"skipLibCheck": true,
}

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

1 participant