Skip to content

Missing files for setupSomeArtifacts.js? #366

Description

@jpolitz

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions