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
Can't start the project #13
Comments
@schettino can you help with this? What am I missing? |
I've seen this when there actually two versions of React being imported, but it happened in another library. Like, in the example folder, there's a CRA setup importing the library directly from NPM. Before, I was copying (though a rollup plugin) the files to the example folder, so I could use the most recent build. The first warning you see is 'cause jest configure the option automatically and it was committed later on. #12 solves that. Thus, on the first problem, it generates the build just fine and as you used |
@schettino I've made a minimal repo on top of https://github.com/JerryGreen/react-request-hook-issue13 Just copy-paste the instructions from there, you'll see the error. May help you start investigating P.S. thanks for the lib, it's cool |
I've had a week off, looking into it today. Thanks Jerry! |
@jerrygreen I looked into it and here's a quick summary: by doing I ran your repo and faced the same problem. It's not specific to react-request-hook though. I did the same step by step with this library and got this issue which has the same cause as the ours. Not too surprisedly, if you run By the end, you'll be able to run |
🎉 This issue has been resolved in version 2.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I wanted to play a bit with these null/undefined, so I cloned the repo but after
yarn && yarn start
I've encountered two problems:First problem
However, by "waiting for changes" I suppose it's working anyway...
Second problem
I use the lib in my project - it's working ok. I managed to switch to my local
react-request-hook
withyarn link
the lib, thenyarn link react-request-hook
in my project, but then I get this error in my app:I tried to disable
declaration
andisolatedModules
- it doesn't help, so it looks like these are different problemsJust a note
Also, you use
allowSyntheticDefaultImports
andesModuleInterop
at the same time - butallowSyntheticDefaultImports
may be disabled (here's why)Additional thoughts
I may miss something. Maybe it's good idea to place some "How to contribute" section in readme
The text was updated successfully, but these errors were encountered: