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
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:
Error: Unable to find a browserify-shim config section in the package.json for /home/web/www/persist/node_modules/jquery-ui/jquery-ui.js while parsing file: /home/web/www/persist/node_modules/jquery-ui/jquery-ui.js]
filename: '/home/web/www/persist/node_modules/jquery-ui/jquery-ui.js'
. . .
If I move node_modules in project folder, build process is successfull. How to solve this problem?
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.
@thlorenzyarn link/npm link is a common scenario for developing multiple, interdependent repositories at once. This is an issue for the graphiql project
Repository owner
locked as resolved and limited conversation to collaborators
May 13, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: