Skip to content

pug template not working properly #4306

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
rubick24 opened this issue Jul 18, 2019 · 2 comments · May be fixed by Matthelonianxl/vue-cli#11, carlosrojaso/vue-cli#34, carlosrojaso/vue-cli#36 or Matthelonianxl/vue-cli#17

Comments

@rubick24
Copy link

rubick24 commented Jul 18, 2019

Version

3.9.2

Reproduction link

https://github.com/Deadalusmask/issue-pug-template

Environment info


Environment Info:

  System:
    OS: Linux 4.4 Ubuntu 18.04.1 LTS (Bionic Beaver)
    CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
  Binaries:
    Node: 10.15.0 - /usr/bin/node
    Yarn: 1.16.0 - /usr/bin/yarn
    npm: 6.10.0 - ~/.npm-global/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  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.9.2 
    @vue/babel-preset-jsx:  1.0.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.0.0 
    @vue/cli-overlay:  3.9.0 
    @vue/cli-plugin-babel: ^3.9.0 => 3.9.2 
    @vue/cli-service: ^3.9.0 => 3.9.2 
    @vue/cli-shared-utils:  3.9.0 
    @vue/component-compiler-utils:  2.6.0 (3.0.0)
    @vue/preload-webpack-plugin:  1.1.0 
    @vue/web-component-wrapper:  1.2.0 
    vue: ^2.6.10 => 2.6.10 
    vue-hot-reload-api:  2.3.3 
    vue-loader:  15.7.1 
    vue-style-loader:  4.1.2 
    vue-template-compiler: ^2.6.10 => 2.6.10 
    vue-template-es2015-compiler:  1.9.1 
  npmGlobalPackages:
    @vue/cli: Not Found


Steps to reproduce

install the repo

run yarn serve

open it in browser

What is expected?

use transpiled pug template

What is actually happening?

use default template with export default [transpiled pug html string] in <body>


Its says compiled successfully in console.

this is the innerHtml of that document.body

<export>default "<meta charset="\&quot;utf-8\&quot;"><title>Repreduce Pug Issue</title><link href="/index.js" rel="preload" as="script"><div id="\&quot;app\&quot;" :style="\&quot;{margin:" 0}\"=""></div><script type="text/javascript" src="/index.js"></script>"</export>
@rubick24
Copy link
Author

viewed #2601 and #3646 , but seems it's not related

@haoqunjiang
Copy link
Member

Just remove your custom webpack config.
We have it preconfigured already.
Your custom config plus ours made the same rule applied twice. That's why it failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment