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

Sveltekit: Cannot generate application #944

Open
Soulusions opened this issue May 15, 2023 · 2 comments
Open

Sveltekit: Cannot generate application #944

Soulusions opened this issue May 15, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Soulusions
Copy link

Describe the bug
Generating a new Sveltekit application fails.

To Reproduce
Run pnpm exec nx generate @nxext/sveltekit:application svelte-app in a newly create nx repo.

Expected behavior
Running generate should generate the project and not error out.

Additional context
Here's the CLI output with the verbose flag:

>  NX  Generating @nxext/sveltekit:application


 >  NX   (0 , project_configuration_1.shouldDefaultToUsingStandaloneConfigs) is not a function


TypeError: (0 , project_configuration_1.shouldDefaultToUsingStandaloneConfigs) is not a function
    at getWorkspaceLayout (/home/soul/nn-nx/node_modules/.pnpm/@nrwl+devkit@14.8.8_nx@16.1.4_typescript@4.9.5/node_modules/@nrwl/devkit/src/utils/get-workspace-layout.js:25:96)
    at normalizeOptions (/home/soul/nn-nx/node_modules/.pnpm/@nxext+sveltekit@14.0.0-next.2_nx@16.1.4_typescript@4.9.5/node_modules/@nxext/sveltekit/src/generators/application/generator.js:19:60)
    at /home/soul/nn-nx/node_modules/.pnpm/@nxext+sveltekit@14.0.0-next.2_nx@16.1.4_typescript@4.9.5/node_modules/@nxext/sveltekit/src/generators/application/generator.js:36:25
    at Generator.next (<anonymous>)
    at /home/soul/nn-nx/node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/tslib.js:167:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/home/soul/nn-nx/node_modules/.pnpm/tslib@2.5.0/node_modules/tslib/tslib.js:163:16)
    at applicationGenerator (/home/soul/nn-nx/node_modules/.pnpm/@nxext+sveltekit@14.0.0-next.2_nx@16.1.4_typescript@4.9.5/node_modules/@nxext/sveltekit/src/generators/application/generator.js:35:20)
    at Object.<anonymous> (/home/soul/nn-nx/node_modules/.pnpm/nx@16.1.4/node_modules/nx/src/command-line/generate.js:249:36)
    at Generator.next (<anonymous>)

On an additional note, I am using pnpm.

@Soulusions Soulusions added the bug Something isn't working label May 15, 2023
@t-mish
Copy link

t-mish commented May 25, 2023

I think it will be resolved soon. There is a pull request which actually integrates the new Nx's vite instead of the deprecated nxext one. Hope it will be published in near future and everything will be ok

#924

@skapoor8
Copy link

Having the exact same issue. Any updates on this?

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