Skip to content

Directory import is not supported? #238

Closed Answered by jtoon86
jtoon86 asked this question in PrimeReact
Discussion options

You must be logged in to vote

I did some additional testing/searching and it seemed specific to Remix v2. The changes that needed to be made to allow for standard primereact imports was as follows:

  • In package.json - remove "type": "module"
  • Rename remix.config.js to remix.config.mjs
  • Inside remix.config.mjs add the config option: serverModuleFormat: "cjs"

Hopefully this helps if someone else trying to get this combination working comes to this discussion forum. :)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jtoon86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants