You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 19, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 19, 2021. It is now read-only.
@harrysolovay thanks for your reply.
The .rescriptsrc.js is used now. :)
Unfortunately it does not work, an produces the error:
> BROWSER=none rescripts start
Cannot read property 'rules' of undefined
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! reactsandbox@0.1.0 start: `BROWSER=none rescripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the reactsandbox@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/niclas/.npm/_logs/2019-04-03T17_37_41_108Z-debug.log
Process finished with exit code 1
One thing that might help is rewriting your rule-overriding "Rescript". If you follow these guidelines, you'll avoid possible conflicts with the env Rescript. At first glance, that's what I think is causing your problem. You could also try swapping the order (place the env rescript last). Also try using the full name @rescripts/rescript-env instead of just env. If all else fails, require the env Rescript into your config:
Thanks for your reply :)
Your given code is not working for me.
While trying to fix the problem I realized that CRA uses the ts-compiler only to verify the types and babel to compile to js.
I found https://github.com/epeli/babel-plugin-ts-optchain and it fixed the root-problem of using oc without Proxy (ie11 compatibility).
Activity
harrysolovay commentedon Apr 3, 2019
@nidomiro you're pointing to the
envrescript. To solve your problem, delete the following from yourpackage.json:Then, change your
.rescriptsrc.jsto the following:nidomiro commentedon Apr 3, 2019
@harrysolovay thanks for your reply.
The
.rescriptsrc.jsis used now. :)Unfortunately it does not work, an produces the error:
Maybe you can help me better if you know the Repository: https://gitlab.com/nidomiro/reactsandbox/tree/ie11
harrysolovay commentedon Apr 4, 2019
One thing that might help is rewriting your rule-overriding "Rescript". If you follow these guidelines, you'll avoid possible conflicts with the
envRescript. At first glance, that's what I think is causing your problem. You could also try swapping the order (place theenvrescript last). Also try using the full name@rescripts/rescript-envinstead of justenv. If all else fails, require theenvRescript into your config:Please let me know if these solutions don't work, and I'll get back to you with more support (hopefully it works now though!)
Kind regards,
Harry
nidomiro commentedon Apr 5, 2019
Thanks for your reply :)
Your given code is not working for me.
While trying to fix the problem I realized that CRA uses the ts-compiler only to verify the types and babel to compile to js.
I found https://github.com/epeli/babel-plugin-ts-optchain and it fixed the root-problem of using oc without Proxy (ie11 compatibility).
Thanks for your work and time,
Niclas
harrysolovay commentedon Apr 5, 2019
Gotcha––glad to hear you were able to find a solution & thanks trying Rescripts. Please let me know if you need any more support :)
bretuobay commentedon Aug 22, 2019
For anyone running into this, I found out that the given script is wrong. This might help :)