Description
(If you never seen this error then ignore this)
This is a live thread for different ways to fix Error: Missing Qwik City Env Data
which can be caused by many different errors.
Error: Missing Qwik City Env Data
at AsyncFunction.Aa (file:///Temp/server/q-DNo4f3Gn.js:15:11868)
at AsyncFunction.dc (file:///Temp/server/q-DNo4f3Gn.js:10:5874)
at AsyncFunction.V (file:///Temp/server/q-DNo4f3Gn.js:10:5808)
at file:///Temp/server/q-DNo4f3Gn.js:15:2935
at q (file:///Temp/server/q-DNo4f3Gn.js:7:1510)
at file:///Temp/server/q-DNo4f3Gn.js:15:2804
at file:///Temp/server/q-DNo4f3Gn.js:8:4693
at Qt (file:///Temp/server/q-DNo4f3Gn.js:7:1430)
at Et (file:///Temp/server/q-DNo4f3Gn.js:8:4686)
at wi (file:///Temp/server/q-DNo4f3Gn.js:8:9122)
Your error might be one of the many fixes listed below
if any of these fixed your issue add a reaction to this post. Otherwise add a comment if you're still stuck
1. cookie issue
"I faced the same issue, but it was only due to the hostname/domain (localhost) having data of previous app stored in it. It solved itself when I cleared cookies and site data"
clear cookies and site data
2. accidentally importing server-only packages on the client
you might have accidentally imported a server-only package onto the client during development.
move server-only code into routeLoader$ or server$
3. deps in "dependencies" not in "devDependencies"
you might have dependencies in "dependencies" inside package.json that are being excluded. Move the packages into "devDependencies" unless they're server-only packages or packages with production binary e.g "bcrypt"
move app dependencies in package.json into "devDependencies"
4. when resizing window on local dev
sometimes when installing a new qwik app you may see this error when resizing the window. This is sometimes caused when the source-maps aren't loading
restart the dev server (comment here and ping me if this doesn't work)
5. partytown install
when installing qwik party town there can be an error with the QwikPartyTown component
remove <QwikPartytown forward={['dataLayer.push', 'fbq']} />
in root.tsx
Metadata
Metadata
Assignees
Type
Projects
Status