-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion to mention about ESBUILD_BINARY_PATH
env var in README.md
.
#15
Comments
Good point @grzegorzpokorski. I'm not using Windows so I just copied code from I am only wondering, because we have separate esbuild package for every platform Node recognises, shouldn't just installing Maybe you can install just If you will be able to, I think we can add just some information that if your error happen, we need to install main |
Hi @robert-orlinski. I only cloned your repo and run npm install. I was little bit confused because in If I good understand, |
You are right @grzegorzpokorski, as I see, also on Mac, there is But this is weird that on Mac environment I will get access to Windows environment and test it 🙂 Maybe I will find something interesting! |
To be sure - there is no executable in |
After run app by |
I've just found that following path to executable file of process.env.ESBUILD_BINARY_PATH = path.join(
process.cwd(),
'node_modules',
'.bin',
'esbuild',
); ... and if i good understand this npm documentation article, above path could be used as 'universal' for win32 platforms 🤔 |
@grzegorzpokorski WOW, you are right! It's awesome that this change works also for Macs as I see! If we go even further, what about deleting I am asking because this Now it disappeared (at least on my environment) so I can expect that this is no longer the case - maybe there was some Next.js or mdx-bundler update that solved it 🤔 |
Yeah, you can get rid of whole Below more information why |
I am sorry for this late reply. I haven't noticed any notification regarding your last comment 😮 I removed this |
I think t would be worthy to mention in
README.md
that if someone want to run the project on windows platform (or different) in local environment, should check if have a correct path to executable file (esbuild.exe
oresbuild
) in./helpers/content/mdx.ts
.Bad path to esbuild executable make impossible to compile and bundle mdx files.
Something like that would be enough: "Take care about correct
ESBUILD_BINARY_PATH
env variable which is defined in./helpers/content/mdx.ts
file".For example for me I work on windows 10 x64 and correct path to
esbuild.exe
is:./node_modules/esbuild-windows-64/esbuild.exe
.The text was updated successfully, but these errors were encountered: