Vite npm run issue -- The requested module ______does not provide an export named ______"} #9851
JustinBeck
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ok I'm lost on how to correct this:
I just recently shifted over to Remix + Vite.
I'm new to Vite
when I run:
npm run start
I get this issue
{"statusCode":500,"error":"Internal Server Error","message":"The requested module '@algolia/autocomplete-js' does not provide an export named 'autocomplete'"}
I've read other posts on this issue and seems like package.json type: "module" issue or something else.
It's directly tied to
"start": "cross-env NODE_ENV=production tsx --enable-source-maps --watch-path ./server/index.ts ./server/index.ts",
If I set this to NODE_ENV="development" -- it would all work fine.
Any pointers?
Beta Was this translation helpful? Give feedback.
All reactions