Closed ksorv closed 2 years ago
@kentcdodds Sorry if the issue doesn't belong here. Please help
I'm not sure what's going on here and I'm afraid I don't have the time to look into this for you :( Hopefully someone else can help!
Hmm, I hope someone can tag along to help @kentcdodds.
I've been searching for it over n over but found nothing like this one.
Do you maybe have time to give some pointers on where to start debugging I wanna look into it.
@kentcdodds I think i was able to fix it by using:
function fixEsbuildBinaryError() {
if (process.platform === 'win32') {
process.env.ESBUILD_BINARY_PATH = path.join(
process.cwd(),
'node_modules',
'esbuild',
'esbuild.exe',
)
} else {
process.env.ESBUILD_BINARY_PATH = path.join(
process.cwd(),
'node_modules',
'esbuild',
'bin',
'esbuild',
)
}
}
fixEsbuildBinaryError();
in the whatever.server.ts
file in which i was using mdx-bundler.
So, Closing this one. Thanks for your time.
mdx-bundler
version: ^9.0.1node
version: 18.7.0npm
version: 8.19.2Relevant code or config
What you did: Just installed the package and used it. Everything works just fine locally but while deploying to fly or railway the build always fails saying:
What happened: Can not get my server to deploy.
Reproduction repository: https://github.com/ksorv/blog
Problem description:
Suggested solution: No idea tried everything that I could find related to the problem.