kkeisuke / plantuml-editor

PlantUML online demo client
https://github.com/kkeisuke/plantuml-editor2
MIT License
435 stars 75 forks source link

Failed to compile with 2 errors #2

Open liumapp opened 6 years ago

liumapp commented 6 years ago

ERROR Failed to compile with 2 errors 09:44:01

one is in ./src/components/Editor.vue (Module build failed: TypeError: Cannot read property 'type' of undefined)

the next error in ./src/directive/modules/clipboard.js(Module build failed: TypeError: Cannot read property 'type' of undefined)

and the page look like this 1 pic .

my node version is 9.4.0 and npm version is 5.6.0

kkeisuke commented 6 years ago

I tried with the same version of my Node.js and npm, but it did not reproduce. Have you noticed anything else?

liumapp commented 6 years ago

I copied the whole error info below :

ERROR Failed to compile with 1 errors 23:00:48

error in ./src/directive/modules/clipboard.js

Module build failed: TypeError: Cannot read property 'type' of undefined at hasTypeOfOperator (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/rules/no-undef.js:19:19) at Program:exit.globalScope.through.forEach.ref (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/rules/no-undef.js:59:44) at Array.forEach () at Program:exit (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/rules/no-undef.js:56:37) at listeners.(anonymous function).forEach.listener (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/util/safe-emitter.js:47:58) at Array.forEach () at Object.emit (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/util/safe-emitter.js:47:38) at NodeEventGenerator.applySelector (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/util/node-event-generator.js:251:26) at NodeEventGenerator.applySelectors (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/util/node-event-generator.js:280:22) at NodeEventGenerator.leaveNode (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/util/node-event-generator.js:303:14) at CodePathAnalyzer.leaveNode (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/code-path-analysis/code-path-analyzer.js:630:23) at Traverser.leave [as _leave] (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/linter.js:1009:32) at Traverser._traverse (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/util/traverser.js:155:18) at Traverser.traverse (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/util/traverser.js:115:14) at Linter._verifyWithoutProcessors (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/linter.js:1003:19) at preprocess.map.textBlock (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/linter.js:1045:35) at Array.map () at Linter.verify (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/linter.js:1044:42) at localVerify (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint-plugin-html@4.0.1@eslint-plugin-html/src/index.js:81:14) at Linter.verify (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint-plugin-html@4.0.1@eslint-plugin-html/src/index.js:145:18) at Linter.verifyAndFix (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/linter.js:1136:29) at processText (/usr/local/tomcat/project/plantuml-editor/node_modules/_eslint@4.16.0@eslint/lib/cli-engine.js:179:32)

@ ./src/directive/index.js 8:0-44 @ ./~/_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@13.5.0@vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/App.vue @ ./src/App.vue @ ./src/main.js @ multi ./build/dev-client ./src/main.js

Listening at http://localhost:8080

kkeisuke commented 6 years ago

Please try the following procedure

  1. delete ./node_modules folder
  2. revert changes
  3. npm install
  4. npm run dev

Has your package-lock.json file changed?

liumapp commented 6 years ago

Now it works , tks a lot . But there is one more question . My ip address belong to China , the main land , which makes it hard to acquire some resources . I solved this problem by using Lantern , so , it shall be helpful for the others if you mention this in README.md .

kkeisuke commented 6 years ago

This application uses heroku for PlantUML server. it takes time to start up, because it uses free plan of heroku. I'm considering features that allow you to set up your own PlantUML server. Please wait for a little while.