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

Svelte: storybook generator fail if NOT using eslintrc JSON file #1036

Open
floratmin opened this issue Sep 28, 2023 · 3 comments
Open

Svelte: storybook generator fail if NOT using eslintrc JSON file #1036

floratmin opened this issue Sep 28, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@floratmin
Copy link

When creating a storybook with the command

nx g @nxext/svelte:storybook-configuration tool

I get the error NX Cannot parse apps/tool/.eslintrc.js: InvalidSymbol in JSON at 1:1

When replacing the file .eslintrc.js with a file .eslintrc.json, then the installation works. Then after installation I can switch back to the eslintrc.js file and everything works like intended.

@floratmin floratmin added the bug Something isn't working label Sep 28, 2023
@slaterhaus
Copy link

Seeing this bug today as well

@frqubit
Copy link

frqubit commented Oct 25, 2024

I encountered this as well while setting up Storybook with SvelteKit. The eslintrc file is the flat format, and it's dynamic. It isn't JSON serializable. What's the progress on fixing this?

@frqubit
Copy link

frqubit commented Oct 25, 2024

For anyone who sees this in the future, this is not a nxext issue. This is a @nx/storybook issue. There are two closed issues on their repository listed below. Neither thread helped my use case.

nrwl/nx#20951
nrwl/nx#21739

Renaming the eslintrc file made it work without a hitch. Regardless, the issue is not with this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants