-
Remix version: 1.7.1 Steps to ReproduceCreate a simple test.jsx Remix route: import { json } from "@remix-run/node";
export default function SomePage(props) {
return <div>
Page
</div>
} Then Expected BehaviorNo errors in developer console. Actual BehaviorError in developer console: package.json{
"private": true,
"sideEffects": false,
"scripts": {
"build": "remix build",
"dev": "remix dev",
"start": "remix-serve build"
},
"dependencies": {
"@remix-run/node": "^1.7.1",
"@remix-run/react": "^1.7.1",
"@remix-run/serve": "^1.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "^1.7.1",
"@remix-run/eslint-config": "^1.7.1",
"eslint": "^8.20.0"
},
"engines": {
"node": ">=14"
},
"packageManager": "[email protected]"
}
Yarn and Node
NB. I tried creating the project with using Yarn 1.x and it worked fine. The problem appears after migrating to yarn 3.x Might be related: Looks like Yarn 3.x supports ESM module loading. So I tried the following in my yarnPath: .yarn/releases/yarn-3.2.3.cjs
pnpEnableEsmLoader: true
nodeLinker: "pnp" But this did not help. So, the thread above makes me think that yarn 3.x should work with Remix. But it does not. I'm wondering if this is Remix or Yarn issue? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
I tried to reproduce (https://github.com/RDIL/remix-pnp-test) but was unable to. Can you try with my repository and see if it works for you? If it does, it sounds like something isn't right with your specific setup. |
Beta Was this translation helpful? Give feedback.
-
@RDIL looking at your code, can't find where you do Could you please double-check you have a Just create that page in the |
Beta Was this translation helpful? Give feedback.
-
Let's try: remix-run/remix#4236 |
Beta Was this translation helpful? Give feedback.
-
@RDIL , there's an update in that issue, could you please check if it makes any difference? Thank you. |
Beta Was this translation helpful? Give feedback.
@RDIL , there's an update in that issue, could you please check if it makes any difference? Thank you.
remix-run/remix#4236 (comment)