You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a remix in spa mode. I want to use react-query to fetch data from a json API. However, the moment I install react query, the app stops working and I get this error when I run npm run dev:
[ERROR] Could not resolve "react"
node_modules/@remix-run/react/dist/esm/fallback.js:11:23:
11 │ import * as React from 'react';
╵ ~~~~~~~
You can mark the path "react" as external to exclude it from the bundle, which will remove this
error and leave the unresolved path in the bundle.
I have tried this 3 times with different greenfield projects and the problem persists. I tried it without switching to spa mode and the same problem persists.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a remix in spa mode. I want to use react-query to fetch data from a json API. However, the moment I install react query, the app stops working and I get this error when I run npm run dev:
I have tried this 3 times with different greenfield projects and the problem persists. I tried it without switching to spa mode and the same problem persists.
Beta Was this translation helpful? Give feedback.
All reactions