Skip to content

run success, but page show errors #1835

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

Closed
1 task done
HCLQ opened this issue Sep 4, 2019 · 5 comments
Closed
1 task done

run success, but page show errors #1835

HCLQ opened this issue Sep 4, 2019 · 5 comments
Labels
need feedback Awaiting author response

Comments

@HCLQ
Copy link

HCLQ commented Sep 4, 2019

  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

in lerna project, make a docs dir with README.md
run command:

yarn add vuepress -W -D
npm run docs:dev     // vuepress dev docs

What is expected?

cli show success and open http://localhost:8080/ to view the page

What is actually happening?

the page show errors like

  Error: webpack-internal:///./node_modules/@vuepress/core/node_modules/webpack/buildin/harmony-module.js:34
  /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./harmony-module.js */ "./node_modules/@vuepress/core/node_modules/webpack/buildin/harmony-module.js")(module)))//# sourceU  RL=[module]
                                                                                                                                                                        ^
  TypeError: __webpack_require__(...) is not a function
  
  - harmony-module.js:34 eval
    [.]/[core]/[webpack]/buildin/harmony-module.js:34:167
  
  - index.dev.html:789 Module../node_modules/@vuepress/core/node_modules/webpack/buildin/harmony-module.js
    [ymm-plugin]/[@vuepress]/core/lib/client/index.dev.html:789:1
  
  - index.dev.html:687 __webpack_require__
    [ymm-plugin]/[@vuepress]/core/lib/client/index.dev.html:687:30
  
  - index.dev.html:61 fn
    [ymm-plugin]/[@vuepress]/core/lib/client/index.dev.html:61:20
  
  - module.js:30 eval
    [.]/[core]/[webpack]/buildin/module.js:30:41
  
  - index.dev.html:801 Module../node_modules/@vuepress/core/node_modules/webpack/buildin/module.js
    [ymm-plugin]/[@vuepress]/core/lib/client/index.dev.html:801:1
  
  - index.dev.html:687 __webpack_require__
    [ymm-plugin]/[@vuepress]/core/lib/client/index.dev.html:687:30
  
  - index.dev.html:61 fn
    [ymm-plugin]/[@vuepress]/core/lib/client/index.dev.html:61:20
  
  - lodash.js:17106 eval
    [.]/[core]/[lodash]/lodash.js:17106:41
  
  - index.dev.html:766 Object../node_modules/@vuepress/core/node_modules/lodash/lodash.js
    [ymm-plugin]/[@vuepress]/core/lib/client/index.dev.html:766:1
  
Html Webpack Plugin:

Other relevant information

Environment Info:

  System:
    OS: macOS 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
  Binaries:
    Node: 12.8.0 - /usr/local/bin/node
    Yarn: 1.16.0 - ~/.yarn/bin/yarn
    npm: 6.10.2 - /usr/local/bin/npm
  Browsers:
    Chrome: 76.0.3809.132
    Firefox: Not Found
    Safari: 12.1.2
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0 
    @vue/babel-plugin-transform-vue-jsx:  1.0.0 
    @vue/babel-preset-app:  3.11.0 
    @vue/babel-preset-jsx:  1.1.0 
    @vue/babel-sugar-functional-vue:  1.0.0 
    @vue/babel-sugar-inject-h:  1.0.0 
    @vue/babel-sugar-v-model:  1.0.0 
    @vue/babel-sugar-v-on:  1.1.0 
    @vue/cli-shared-utils: ^3.9.0 => 3.9.0 
    @vue/component-compiler-utils:  3.0.0 
    typescript:  3.5.3 
    vue: ^2.6.10 => 2.6.10 
    vue-cli-plugin-ymm:  0.1.1 
    vue-hot-reload-api:  2.3.3 
    vue-loader:  undefined (15.7.1)
    vue-router:  3.1.2 (3.1.3)
    vue-server-renderer:  2.6.10 
    vue-style-loader:  4.1.2 
    vue-template-compiler:  2.6.10 
    vue-template-es2015-compiler:  1.9.1 
    vuepress: ^1.0.3 => 1.0.3 
    vuepress-html-webpack-plugin:  undefined (3.2.0)
    vuepress-plugin-container:  2.0.2 
    vuex:  3.1.1 
    vuex-router-sync:  5.0.0 
  npmGlobalPackages:
    @vue/cli: 3.1.3
  • Output of npx vuepress info in my VuePress project:
Environment Info:

  System:
    OS: macOS 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
  Binaries:
    Node: 12.8.0 - /usr/local/bin/node
    Yarn: 1.16.0 - ~/.yarn/bin/yarn
    npm: 6.10.2 - /usr/local/bin/npm
  Browsers:
    Chrome: 76.0.3809.132
    Firefox: Not Found
    Safari: 12.1.2
  npmPackages:
    @vuepress/core:  1.0.3 
    @vuepress/theme-default:  1.0.3 
    vuepress: ^1.0.3 => 1.0.3 
  npmGlobalPackages:
    vuepress: Not Found
@kefranabg
Copy link
Collaborator

Hi @HCLQ, thanks for the report.

Are you running Vuepress in a Vue.js repository? Is it possible that you provide a reproduction link?

@flozero flozero added the need feedback Awaiting author response label Sep 6, 2019
@HCLQ
Copy link
Author

HCLQ commented Sep 6, 2019

Hi @HCLQ, thanks for the report.

Are you running Vuepress in a Vue.js repository? Is it possible that you provide a reproduction link?

Yes, I'm writing docs in a vue project.
Now,i find the [email protected] is work well.

@kefranabg
Copy link
Collaborator

kefranabg commented Sep 6, 2019

Could you try to remove @vue/cli-service this package from your project and run vuepress again? If it's working, this issue is related to this PR that will fix this problem. (Will be released in VP 1.1)

@vue-bot
Copy link

vue-bot commented Sep 23, 2019

Hello!
This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues requiring feedback after 20 days of inactivity. It’s been at least 10 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. (A maintainer can also add the label not stale to keep this issue open.)

Thanks for being a part of the Vue community! 💪💚️

@vue-bot
Copy link

vue-bot commented Oct 3, 2019

Hey again! 😸️

It’s been 20 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.
Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. 🤖 Please feel free to reopen this issue or create a new one if you need anything else.

Thanks again for being part of the Vue community! 💚️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need feedback Awaiting author response
Projects
None yet
Development

No branches or pull requests

4 participants