We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--no-typescript
1.3.5
npx create-remix@latest --template blues-stack --no-typescript
Then try to npm run dev in the app it creates.
npm run dev
It should start the dev server.
Complains about a bunch of stuff:
server.ts
prisma seed
prisma/seed.ts
prisma/seed.js
import
Recommendation:
"type": "module"
.cjs
.mjs
"type":"module"
.js
require()
import { createRequire } from 'node:module' const require = createRequire(import.meta.url)
The text was updated successfully, but these errors were encountered:
Running into the same issue with the Indie Stack as well: Error: Cannot find module './seed.ts'
Error: Cannot find module './seed.ts'
Sorry, something went wrong.
I got the same error, but I don't know where it comes from? Is an error related to npm run setup? https://github.com/remix-run/blues-stack/blob/main/package.json#L21
I've created remix-run/indie-stack#63, remix-run/blues-stack#57 & remix-run/grunge-stack#50 in order to fix this.
Closing this issue as it can be tracked in the stack repos itself now
Thank you @MichaelDeBoey I was trying to figure out how to fix this, I will read your code to understand it.
No branches or pull requests
What version of Remix are you using?
1.3.5
Steps to Reproduce
Then try to
npm run dev
in the app it creates.Expected Behavior
It should start the dev server.
Actual Behavior
Complains about a bunch of stuff:
server.ts
is missingprisma seed
command fails becauseprisma/seed.ts
is actuallyprisma/seed.js
import
in commonjs contextsRecommendation:
"type": "module"
in package.json and name all commonjs modules.cjs
.mjs
"type":"module"
, leave everything.js
, but add this bit at the top of any file that referencesrequire()
:The text was updated successfully, but these errors were encountered: