Open chuckstock opened 2 years ago
Hey @chuckstock - checkout this issue
You should just have to add use-sound
to the serverDependenciesToBundle
in your remix.config.js
👍
/**
* @type {import('@remix-run/dev').AppConfig}
*/
module.exports = {
serverBuildTarget: "netlify",
cacheDirectory: "./node_modules/.cache/remix",
server: "./server.js",
ignoredRouteFiles: [
".*",
"**/*.css",
"**/*.test.{js,jsx,ts,tsx}",
"**/*.spec.{js,jsx,ts,tsx}",
],
serverDependenciesToBundle: [
"@headlessui/react",
"@heroicons/react",
"use-sound",
],
};
When adding use-sound to a Remix react app, I'm getting this error when trying to run or build the app.
Not sure if there are any suggestions for trying to solve this problem.