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

Debugging/inspecting with Modular Forms gives qwik-city-plan errors #206

Open
intellix opened this issue Oct 13, 2023 · 3 comments
Open

Comments

@intellix
Copy link
Contributor

intellix commented Oct 13, 2023

Current Behavior

If you create a brand new qwik-nx project, install modular forms and try to debug/inspect locally, you'll get an error about and invalid qwik-city-plan module:

Invalid module "@qwik-city-plan" is not a valid package name imported from /Projects/myapp/node_modules/@builder.io/qwik-city/index.qwik.mjs

Originally I wrote about it here: QwikDev/qwik#3297 (comment)

Expected Behavior

You should just be able to debug locally

GitHub Repo

No response

Steps to Reproduce

  1. Create a brand new qwik-nx project
  2. Install modular-forms:
npm i @modular-forms/qwik
  1. Add this to header.tsx in the new project:
import { useForm } from '@modular-forms/qwik';

const loader = useSignal({ email: '' });
useForm<any, any>({ loader, validateOn: 'change' });

4 Run the debug preview:

npx nx run myapp:serve.debug

Nx Report

Node   : 18.16.0
   OS     : darwin arm64
   npm    : 9.5.1
   Hasher : Native
   
   nx                 : 16.2.2
   @nx/js             : 16.2.2
   @nx/linter         : 16.2.2
   @nx/workspace      : 16.2.2
   @nx/cypress        : 16.2.2
   @nx/devkit         : 16.2.2
   @nx/eslint-plugin  : 16.2.2
   @nx/storybook      : 16.2.2
   @nrwl/tao          : 16.2.2
   @nx/vite           : 16.2.2
   typescript         : 5.1.6
   ---------------------------------------
   Community plugins:
   qwik-nx : 1.0.11

Failure Logs

Invalid module "@qwik-city-plan" is not a valid package name imported from /Projects/myapp/node_modules/@builder.io/qwik-city/index.qwik.mjs

Additional Information

It's the exact same command being run with a brand new qwik project and I noticed that it works there without issue.

@gNaps
Copy link

gNaps commented Nov 21, 2023

I don't know why but using pnpm instead of yarn resolved for me.

@gnemanja
Copy link

@intellix
Did you manage to solve this issue? Thank You in advance

@intellix
Copy link
Contributor Author

nope, I was hoping that this work actually helps here though, but not sure: #218

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

3 participants