-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
unejected version does not work for a subdirectory of another npm module #19
Comments
Can you be more precise for "it didn't work"? |
How did you do it? |
And then it failed with a bunch of errors similar to "Module not found: Error: Cannot resolve module 'webpack-dev-server/client' in /Users/lacker/graphql-hacks/foobar". graphql-hacks in this case already has a package.json. When I ejected, it worked. The resulting functional post-eject code is at https://github.com/lacker/graphql-hacks/tree/master/fromscratch if you are curious to see it. |
Oh, this is not supported (the argument is supposed to be the project name, not a path). |
@gaearon the cli is designed to work with a path. I think the issue is the |
I've tried it inside of jest ( https://github.com/facebook/jest ) and it throws with Cannot find module 'babel-eslint'. For some reason it reads the .babelrc file of jest instead of the one that is provided by the babel-loader. I'm trying to figure out what's going on. |
Interesting. Maybe Babel still looks for |
Okay, I got the Jest case working locally. It happens because of Since we plan to maintain our own anyway, I’ll try to get this working. |
@lacker Can you still reproduce this with master? It works for me: |
Still doesn't work for me, but I'll open a new issue with more specific info. |
I tried create-react-app in a subdirectory of a different project. It did not work. Then when I ejected, it worked. It might be related to the file:/// thing - just filing an issue to get this recorded.
The text was updated successfully, but these errors were encountered: