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
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
-
I was using
react
andreact-dom
as render-engine and facing this problem when Rollup try to resolve a JSX/TSX import in my nitro app:RollupError: Could not resolve "./../components/MyComponent" from "src/server/routes/page.tsx"
The path for MyComponent is correct.
My guess is that we need add
.jsx
and.tsx
to extensions array in this lineI changed it in
node_modules/nitropack/dist/nitro.mjs
, adding.jsx
and.tsx
to extendions, and it worked, Rollup resolved correctly the TSX fileAm I correct? I can open a PR if this is ok
Beta Was this translation helpful? Give feedback.
All reactions