grant / go-diagram

🌐 A UML diagram editor for Golang projects
https://docs.google.com/document/d/1exvOxiBwERKd5P1nZ7hjmhkGchoAhr0tZK_f_3EVy2M
176 stars 21 forks source link

Error: Cannot resolve module 'jquery' #3

Closed e11it closed 8 years ago

e11it commented 8 years ago

Hi!

I have cloned repo. Run as in instruction with no errors:

cd app && npm i

And then got an error Cannot resolve module 'jquery':

➜  app git:(master) npm run build         

> go-diagram@0.0.2 build /private/tmp/go-diagram/app
> webpack --config webpack.config.js --progress --colors -p

Hash: 53ab0d7fcd4bcec2a51f  
Version: webpack 1.12.14
Time: 12961ms
       Asset       Size  Chunks             Chunk Names
js/bundle.js     455 kB       0  [emitted]  main
  index.html  399 bytes          [emitted]  
   [0] multi main 52 bytes {0} [built]
    + 472 hidden modules

WARNING in js/bundle.js from UglifyJs
Condition always true [./~/react/lib/ReactMount.js:764,0]
Side effects in initialization of unused variable components [./~/babel-preset-react-hmre/~/react-transform-catch-errors/lib/index.js:13,0]
Condition left of && always true [(webpack)-dev-server/~/sockjs-client/~/json3/lib/json3.js:5,0]
Condition always true [./~/react/lib/findDOMNode.js:46,0]
Condition always true [./~/react/lib/instantiateReactComponent.js:80,0]
Dropping unreachable code [./~/react/lib/shouldUpdateReactComponent.js:40,0]
Condition always true [./~/react/lib/traverseAllChildren.js:158,0]
Side effects in initialization of unused variable _reactRouter [./js/components/Struct.js:6,0]
Side effects in initialization of unused variable fieldType [./js/components/UMLDiagram.js:160,10]
Side effects in initialization of unused variable appActions [./js/components/UMLDiagram.js:9,12]
Side effects in initialization of unused variable _reactRedux [./js/components/UMLDiagram.js:10,0]
Side effects in initialization of unused variable CHANGE_PROJECT_NAME [./js/constants/AppConstants.js:9,13]
Side effects in initialization of unused variable CHANGE_OWNER_NAME [./js/constants/AppConstants.js:10,13]
Side effects in initialization of unused variable DELETE_STRUCT [./js/constants/AppConstants.js:11,13]
Side effects in initialization of unused variable CHANGE_STRUCT_NAME [./js/constants/AppConstants.js:12,13]
Side effects in initialization of unused variable CHANGE_STRUCT_FIELD_TYPE [./js/constants/AppConstants.js:13,13]
Side effects in initialization of unused variable CHANGE_STRUCT_FIELD_NAME [./js/constants/AppConstants.js:14,13]
Side effects in initialization of unused variable ADD_STRUCT_FIELD [./js/constants/AppConstants.js:15,13]
Side effects in initialization of unused variable REMOVE_STRUCT_FIELD [./js/constants/AppConstants.js:16,13]
Side effects in initialization of unused variable SET_PACKAGE_DATA [./js/constants/AppConstants.js:17,13]
Side effects in initialization of unused variable ADD_STRUCT [./js/constants/AppConstants.js:18,13]
Side effects in initialization of unused variable state [./~/react-router/lib/Link.js:106,0]
Condition always true [./~/react-router/lib/Redirect.js:49,0]
Condition always true [./js/app.js:46,4]
Side effects in initialization of unused variable dispatch [./js/components/SearchBox.js:25,10]
Side effects in initialization of unused variable projectName [./js/components/pages/HomePage.js:46,6]
Side effects in initialization of unused variable ownerName [./js/components/pages/HomePage.js:47,6]
Side effects in initialization of unused variable _reactRouter [./js/components/pages/HomePage.js:9,0]
Condition always true [./~/babel-preset-react-hmre/~/redbox-react/~/error-stack-parser/error-stack-parser.js:6,0]
Dropping unreachable code [./~/babel-preset-react-hmre/~/redbox-react/~/error-stack-parser/error-stack-parser.js:8,5]
Condition always true [./~/babel-preset-react-hmre/~/redbox-react/~/error-stack-parser/~/stackframe/stackframe.js:6,0]
Dropping unreachable code [./~/babel-preset-react-hmre/~/redbox-react/~/error-stack-parser/~/stackframe/stackframe.js:8,5]
Condition always true [./~/history/lib/createMemoryHistory.js:69,0]
Condition always true [./~/react-router/lib/IndexRedirect.js:49,0]
Condition always true [./~/react-router/lib/IndexRoute.js:46,0]
Condition always true [./~/react-router/lib/Route.js:50,0]
Condition always true [./~/react/lib/ReactDOMComponent.js:907,0]
Dropping side-effect-free statement [./~/react/lib/ReactEventListener.js:72,0]
Dropping unused function handleTopLevelWithPath [./~/react/lib/ReactEventListener.js:98,0]
Dropping unused variable DOCUMENT_FRAGMENT_NODE_TYPE [./~/react/lib/ReactEventListener.js:26,0]
Side effects in initialization of unused variable sourceMap [./~/style-loader/addStyles.js:214,0]
Side effects in initialization of unused variable media [./~/style-loader/addStyles.js:232,0]
Condition always false [./~/style-loader/addStyles.js:24,0]
Dropping unreachable code [./~/style-loader/addStyles.js:25,0]
Condition always true [./~/style-loader!./~/css-loader!./~/stylus-loader!./css/index.styl:10,0]
Condition always true [./~/underscore/underscore.js:48,0]
Dropping unreachable code [./~/underscore/underscore.js:54,0]
Condition always true [./~/underscore/underscore.js:1543,0]
Condition always true [(webpack)-dev-server/client?http:/localhost:3000:9,0]
Side effects in initialization of unused variable scriptHost [(webpack)-dev-server/client?http:/localhost:3000:5,0]
Condition always true [(webpack)/hot/only-dev-server.js:6,0]
Dropping unreachable code [(webpack)/hot/only-dev-server.js:76,0]
Condition always true [(webpack)/~/node-libs-browser/~/url/~/punycode/punycode.js:511,0]
Dropping unreachable code [(webpack)/~/node-libs-browser/~/url/~/punycode/punycode.js:518,2]
Side effects in initialization of unused variable freeExports [(webpack)/~/node-libs-browser/~/url/~/punycode/punycode.js:5,0]
Side effects in initialization of unused variable freeModule [(webpack)/~/node-libs-browser/~/url/~/punycode/punycode.js:7,0]
Dropping unused variable key [(webpack)/~/node-libs-browser/~/url/~/punycode/punycode.js:56,0]

ERROR in ./js/components/UMLDiagram.js
Module not found: Error: Cannot resolve module 'jquery' in /private/tmp/go-diagram/app/js/components
 @ ./js/components/UMLDiagram.js 45:14-31 

Info:

# OS Mac OS X 10.11

➜  uname -a
Darwin MBP.local 15.0.0 Darwin Kernel Version 15.0.0: Wed Aug 26 19:41:34 PDT 2015; root:xnu-3247.1.106~5/RELEASE_X86_64 x86_64
➜  npm -version
2.14.12
grant commented 8 years ago

Hi! The latest commit (11f8b2a50306b1b32c0231d2e91e874b9f454d80) should fix it. Updated the README a bit too.