I'm getting this error when deploying my server to Railway
file:///app/.wasp/build/server/bundle/server.js:12 import cheerio from 'cheerio'; ^^^^^^^^^^^^^^^^ SyntaxError: The requested module 'cheerio' does not provide an export named 'default' at ModuleJob._instantiate (node:internal/modules/esm/module_job:122:21) at async ModuleJob.run (node:internal/modules/esm/module_job:188:5)
ChatGPT told me to replace the following line: import cheerio from 'cheerio'; to import * as cheerio from 'cheerio';
Since it's not quite clear where to change this, do I have to check all of my files under server and do this replacement?
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.