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 dependency S-RescriptStruct in search path when package-specs: modules: es6-global #33

Closed
kiuKisas opened this issue Feb 28, 2023 · 4 comments

Comments

@kiuKisas
Copy link

Well first, I want to say thank you for your work, really enjoy using rescript-struct :)
I need to export my rescript code in es6 format, so I tried to change my package-specs in bsconfig.json,
but I got this error from my IDE:

Missing dependency S-RescriptStruct in search path

Also have this flag in my bsconfig: "bsc-flags": ["-open ReScriptStruct"]
Not sure why and how it can be fix though, I guess I can copy S.res in my project but I would prefer avoid that.

Any idea ?

@kiuKisas
Copy link
Author

Well, never mind, I just needed to rebuild 😅

@DZakh
Copy link
Owner

DZakh commented Feb 28, 2023

Great to hear that the problem resolved 😊

@jderochervlk
Copy link

I am also seeing this problem on my project: https://github.com/jderochervlk/family-calendar

With this config I have no issues.

  "package-specs": [
    {
      "module": "commonjs", 
      "in-source": true
    }
  ],

If I change this to es6 I get the missing dependency error. I've deleted the build lib folder and re-tried running a Rescript build and I still get the error. es6-global also causes this error.

@DZakh
Copy link
Owner

DZakh commented Apr 5, 2023

Try to run rescript build -with-deps

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

3 participants