Skip to content
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

Missing files for setupSomeArtifacts.js? #366

Open
Tracked by #758
jpolitz opened this issue May 10, 2018 · 0 comments
Open
Tracked by #758

Missing files for setupSomeArtifacts.js? #366

jpolitz opened this issue May 10, 2018 · 0 comments

Comments

@jpolitz
Copy link

jpolitz commented May 10, 2018

This is a super-cool project, thanks for having instructions for setting up the bucklescript bundle, it's super-helpful.

I tried following the "hardcore" build instructions and got stuck pretty quickly when trying to run setupSomeArtifacts.js. I know I'm supposed to see an error, but I don't think it's the error I'm expected to see and recover from. Happy to hear if I'm missing something obvious.

On a clean checkout, I run:

cd website
yarn
yarn prepare

which succeed, then I run

$ node setupSomeArtifacts.js
1. Copying refmt.js
2. Copying jsoo_reactjs_jsx_ppx_v2.js
fs.js:1919
  binding.copyFile(src, dest, flags);
          ^

Error: ENOENT: no such file or directory, copyfile '/Users/joe/src/reasonml.github.io/website/playground/bs/jsoo_reactjs_jsx_ppx_v2.js' -> '/Users/joe/src/reasonml.github.io/website/static/js/jsoo_reactjs_jsx_ppx_v2.js'
    at Object.fs.copyFileSync (fs.js:1919:11)
    at Object.<anonymous> (/Users/joe/src/reasonml.github.io/website/setupSomeArtifacts.js:26:4)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Function.Module.runMain (module.js:665:10)
    at startup (bootstrap_node.js:201:16)
    at bootstrap_node.js:626:3

In setupSomeArtifacts (

const jsxFileSource = path.join(playgroundDir, 'bs', 'jsoo_reactjs_jsx_ppx_v2.js');
), it tries to copy website/playground/bs/jsoo_reactjs_jsx_ppx_v2.js, but this file was deleted in this commit: 74604cf

It seems like maybe that was moved to be in static/ directly? If I comment things out to push past that, I see similar issues where there is no file named exports.js either:

const bsFilename = path.join(playgroundDir, 'bs', 'exports.js');

That I can't find anywhere in the repo, so I'm confused. I feel like I may be missing a step that gets these to files into bs/ somehow, but I'm not sure what it is.

Thanks!

@davesnx davesnx mentioned this issue Aug 29, 2023
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant