Closed akalongman closed 8 years ago
Can you get a stacktrace for that error?
Linking breaks browserify and shim since your projects dependencies are outside of your project tree.
So when looking upwards these tools can't find the package.json
of your package anymore.
So don't link your node_modules
folders .. it's a bad idea anyways since you're then linked to a global in your system, i.e. it's better to have all your deps be local to your project.
Not sure what your deployment purposes are, but to me it seems like whoever made that decision didn't fully understand how node/npm is supposed to work.
@thlorenz yarn link
/npm link
is a common scenario for developing multiple, interdependent repositories at once. This is an issue for the graphiql
project
On the production server node_modules folder is a symbolic link for continuous deployment purposes. When I run gulp command, I got many errors like this:
If I move node_modules in project folder, build process is successfull. How to solve this problem?
This question on StackOverflow: http://stackoverflow.com/questions/36559378/browserify-shim-error-when-node-modules-folder-is-a-symlink
package.json file