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

[🐞] dev build randomly fail #2657

Closed
TicTak21 opened this issue Jan 17, 2023 · 11 comments
Closed

[🐞] dev build randomly fail #2657

TicTak21 opened this issue Jan 17, 2023 · 11 comments
Labels
TYPE: bug Something isn't working WAITING FOR: team Waiting for one of the core team members to review and reply

Comments

@TicTak21
Copy link

TicTak21 commented Jan 17, 2023

Which component is affected?

Qwik Runtime

Describe the bug

Screen Shot 2023-01-17 at 14 06 23

2:05:44 PM [vite] Internal server error: Cannot read properties of null (reading 'useQwikCityEnv')
  File: /Users/.../node_modules/.pnpm/@[email protected]/node_modules/@builder.io/qwik-city/index.qwik.mjs:276:14
  274|  };
  275|  const QwikCityProvider = /* @__PURE__ */ componentQrl(inlinedQrl(() => {
  276|    const env = useQwikCityEnv();
     |                ^
  277|    if (!env?.params)
  278|      throw new Error(`Missing Qwik City Env Data`);
      at QwikCityProvider_component_TxCFOy819ag (/Users/.../node_modules/.pnpm/@[email protected]/node_modules/@builder.io/qwik-city/index.qwik.mjs:276:14)
      at invoke (file:///Users/.../node_modules/.pnpm/@[email protected][email protected]/node_modules/@builder.io/qwik/core.mjs:706:26)
      at file:///Users/.../node_modules/.pnpm/@[email protected][email protected]/node_modules/@builder.io/qwik/core.mjs:6348:28
      at async renderRoot (file:///Users/.../node_modules/.pnpm/@[email protected][email protected]/node_modules/@builder.io/qwik/core.mjs:6840:5)
      at async renderSSR (file:///Users/.../node_modules/.pnpm/@[email protected][email protected]/node_modules/@builder.io/qwik/core.mjs:6836:5)
      at async Proxy.renderToStream (file:///Users/.../node_modules/.pnpm/@[email protected][email protected]/node_modules/@builder.io/qwik/server.mjs:632:3)
      at async /Users/.../node_modules/.pnpm/@[email protected][email protected]/node_modules/@builder.io/qwik/optimizer.cjs:1763:28

Steps to reproduce

  1. pnpm create qwik@latest
  2. Edit files
  3. Random error

System Info

System:
    OS: macOS 10.15.7
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 18.12.1 - /usr/local/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 8.19.2 - /usr/local/bin/npm
    Watchman: 2022.11.14.00 - /usr/local/bin/watchman
  Browsers:
    Brave Browser: 109.1.47.171
    Chrome: 108.0.5359.124
    Firefox: 104.0.2
    Safari: 14.1.1
@TicTak21 TicTak21 added TYPE: bug Something isn't working STATUS-1: needs triage New issue which needs to be triaged labels Jan 17, 2023
@DustinJSilk
Copy link
Contributor

I get this as well quite regularly while in development.
Saving the file again once or twice removes the error.

I havent tested this on production yet but I assume its just a dev issue.

@TicTak21
Copy link
Author

Yes, it works fine after saving, but I think it shouldn't have happened in the first place.
It's annoying and I can't find any related information on how to fix it.

@manucorporat
Copy link
Contributor

Looking!

@vladimir-gal
Copy link

@manucorporat Hi, any updates on this one ? It keeps happening quite frequently.

@TicTak21
Copy link
Author

Updates?

@KaanSali
Copy link

KaanSali commented May 10, 2023

Still have this issue at version 1.0. It started after installing partytown integration. When I remove QwikPartytown tag from root.tsx, I don't get any errors.

@TicTak21 TicTak21 reopened this May 11, 2023
@VinSpee
Copy link

VinSpee commented Aug 3, 2023

I can confirm seeing this on latest (1.2.6) when the Partytown integration (0.8.0) is present in the tree.

@shairez shairez added WAITING FOR: team Waiting for one of the core team members to review and reply and removed STATUS-1: needs triage New issue which needs to be triaged labels Aug 15, 2023
@rodmoreno
Copy link

I can confirm too seeing this on latest (1.2.10) with Partytown integration (0.8.1) is present in the tree.

@mhevery
Copy link
Contributor

mhevery commented Sep 11, 2023

This is a very generic reproduction step Could we have something which is more predictable? Hard to fix if we don't have consistant reproduction.

@rodrigotonso
Copy link

When I had that issue with Partytown, clearing the cache helped me.
Captura de pantalla 2023-11-24 a la(s) 01 19 15

@PatrickJS
Copy link
Member

closing for #6237

@PatrickJS PatrickJS closed this as not planned Won't fix, can't repro, duplicate, stale May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TYPE: bug Something isn't working WAITING FOR: team Waiting for one of the core team members to review and reply
Projects
None yet
Development

No branches or pull requests