-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
New project doesn't work #2754
Comments
@najikahalsema has been looking at catching up various version and configs herein. Hopefully have an update in the next couple of weeks. |
This looks that problem of peerDependencies ? (yarn doesnt install automatically). In my case test with pnpm and doesnt work. To work respectivelly with npm and then install To work storybook I need to add a {
"type": "commonjs"
} |
Thanks @AntonyF-Andreani that worked. |
Initialising a new project with
npm init @open-wc
sets up a project that doesn't work.When running
yarn install
, one gets warned that two packages are missing:@babel/core
, required by@rollup/plugin-babel
and@babel/preset-env
esbuild
, required byrollup-plugin-esbuild
Then
yarn run lint
andyarn run format
have missing packages as well, and one has to run the commands repeatedly to figure out the next package they should install:eslint-plugin-wc
eslint-plugin-lit-a11y
eslint-plugin-lit
eslint-plugin-html
eslint-plugin-no-only-tests
eslint-plugin-import
@babel/plugin-syntax-import-assertions
yarn run test
requires@web/test-runner-playwright
andplaywright
which are of course missing. Besides, the template seems to create aweb-test-runner.config.js
and aweb-test-runner.config.mjs
, though only one is needed. Perhaps one should be warned thatweb-test-runner.config.mjs
takes priority and updatingweb-test-runner.config.js
while keeping around the other has no effect. On another note, the imports in the config file are commented out for some reason.yarn run analyze
doesn't work:sh: cem: command not found
. Only God knows whatcem
is! I suppose it has to do with@custom-elements-manifest/analyzer
, which exists as a dependency, but somehow doesn't provide acem
command. And becauseyarn run build
and some other coomands also runanalyze
, they fail too.yarn run storybook
doesn't work either, even if you drop theanalyze
part: aprismjs
package is missing, and two required files don't exist,.storybook/server.mjs
and.storybook/main.js
respectively. I initialised them using the sample code at https://modern-web.dev/guides/dev-server/storybook/ and I got yet another error:I've no idea what that means and at this time I'm too tired to look it up on the Internet.
Are there any plans to making it work?
The text was updated successfully, but these errors were encountered: