-
I'm trying deploy a Remix 1.x app in a Linux machine with Debian 12 (amd64). I'm using Typescript but I'm having problems. Maybe it's something trivial but I can't get it so I came here hopping someone can help me or give me a hint about what to look for to fix it. Remix versión is 1.19.3 both on my Mac and on Linux. When running
All the resolve errors are related to an enum living in a When I relocated the enum to a directory in a path without folder including But the problem doesn't end there.
but when I click on a
So it appears the Thank you in advance for your help. Here is the {
"private": true,
"sideEffects": false,
"scripts": {
"build": "npm run build:css && remix build",
"build:css": "tailwindcss -m -i ./styles/app.css -o app/styles/app.css",
"dev": "concurrently \"npm run dev:css\" \"remix dev\"",
"dev:css": "tailwindcss -w -i ./styles/app.css -o app/styles/app.css",
"start": "remix-serve build",
"test": "jest"
},
"dependencies": {
"@headlessui/react": "^1.7.2",
"@react-pdf/renderer": "^3.0.0",
"@remix-run/node": "^1.6.7",
"@remix-run/react": "^1.6.7",
"@remix-run/router": "^1.8.0",
"@remix-run/serve": "^1.6.7",
"csv": "^6.2.0",
"date-fns": "^2.29.1",
"date-fns-tz": "^1.3.7",
"debug": "^4.3.4",
"lodash.groupby": "^4.6.0",
"lodash.isequal": "^4.5.0",
"mongodb": "^4.8.1",
"nanoid": "^3.3.4",
"object-path": "^0.11.8",
"qs": "^6.11.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"sort-by": "^0.0.2",
"tiny-invariant": "^1.2.0"
},
"devDependencies": {
"@babel/core": "^7.18.10",
"@babel/preset-env": "^7.18.10",
"@babel/preset-typescript": "^7.18.6",
"@remix-run/dev": "^1.6.7",
"@remix-run/eslint-config": "^1.6.7",
"@tailwindcss/forms": "^0.5.3",
"@types/csv-parse": "^1.2.2",
"@types/csv-stringify": "^3.1.0",
"@types/jest": "^28.1.6",
"@types/lodash.groupby": "^4.6.7",
"@types/lodash.isequal": "^4.5.6",
"@types/qs": "^6.9.7",
"@types/react": "^17.0.47",
"@types/react-dom": "^17.0.17",
"@types/sort-by": "^1.2.3",
"autoprefixer": "^10.4.12",
"babel-jest": "^28.1.3",
"babel-plugin-module-resolver": "^4.1.0",
"concurrently": "^7.4.0",
"eslint": "^8.20.0",
"jest": "^28.1.3",
"postcss": "^8.4.16",
"tailwindcss": "^3.1.8",
"typescript": "^4.7.4"
},
"engines": {
"node": ">=14"
}
}
Here is my remix.config.js /** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
watchPaths: ["domain/**", "utils/**", "uic/**"]
}; Here is my tsconfig.json file {
"include": [
"remix.env.d.ts",
"**/*.ts",
"**/*.tsx",
"./domain/types/sort-by.d.ts"
],
"compilerOptions": {
"lib": ["DOM", "DOM.Iterable", "ES2019"],
"isolatedModules": true,
"esModuleInterop": true,
"jsx": "react-jsx",
"moduleResolution": "node",
"resolveJsonModule": true,
"target": "ES2019",
"strict": true,
"allowJs": true,
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
"~/domain/*": ["./domain/*"],
"~/utils/*": ["./utils/*"],
"~/app/*": ["./app/*"],
"~/uic/*": ["./uic/*"]
},
"noEmit": true
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nevermind. The problem was that I had renamed some folders from $eventId to $eventID and this change was not propagated to the git repository. So It's now obvious that the errors I was getting were because I was importing a path/$eventID but the source from the git repo didn't have Cush path. It had $eventId. So both errors were due to non existent paths. Anyway I added the link to de Stack Overflow answer that helped me solve the renaming in the right way. How do I commit case-sensitive only filename changes in Git? |
Beta Was this translation helpful? Give feedback.
Nevermind.
The problem was that I had renamed some folders from $eventId to $eventID and this change was not propagated to the git repository. So It's now obvious that the errors I was getting were because I was importing a path/$eventID but the source from the git repo didn't have Cush path. It had $eventId. So both errors were due to non existent paths.
I would be great if there were more context in the errors thrown specially on the runtime case. invariante error doesn't teller anything about the path problem.
Anyway I added the link to de Stack Overflow answer that helped me solve the renaming in the right way.
How do I commit case-sensitive only filename changes in Git?