Code Monkey home page Code Monkey logo

Comments (8)

elevatebart avatar elevatebart commented on July 3, 2024 2

Ouch !! Yes, I entirely forget to update this plugin after the release of vue cli 3.1. I really think I should act on it soon.
Can you give me until Saturday that I look into it. Sorry about your src folder, I hope it’s not too bad.

from vue-cli-plugin-template-loader.

Jeremy-F avatar Jeremy-F commented on July 3, 2024

Don't worry, I solved the problem doing all the configuration manually.
(Updating the vue.config.js, and adding a html.d.ts into my project, already using vue-template-loader).

My last commit solved the problem about my src folder, thanks πŸ‘

from vue-cli-plugin-template-loader.

m4ss1m0g avatar m4ss1m0g commented on July 3, 2024

The bug is still unsolved, warning Installing this version erase the src folder

from vue-cli-plugin-template-loader.

elevatebart avatar elevatebart commented on July 3, 2024

Hello @m4ss1mog,

I would like to try and fix this bug asap.
Would you mind setting up a repo where it is failing?

Thank you in advance

from vue-cli-plugin-template-loader.

m4ss1m0g avatar m4ss1m0g commented on July 3, 2024

System

  • Vue Cli 4.1.2
  • Yarn 1.21.1
  • Windows 10

Repro step

  1. vue create -d -n repro
  2. cd repro\src
  3. touch newcomponent.vue
  4. cd .. Launch the next command on root directory
  5. vue add template-loader

Output

οΏ½ Invoking generator for vue-cli-plugin-template-loader...
ERROR Error: Cannot find module '@vue/cli-plugin-typescript/generator/template/src/shims.d.ts' from 'D:\temp\repro\node_modules\vue-cli-plugin-template-loader\generator\template\src'
Error: Cannot find module '@vue/cli-plugin-typescript/generator/template/src/shims.d.ts' from 'D:\temp\repro\node_modules\vue-cli-plugin-template-loader\generator\template\src'
at Function.resolveSync [as sync] (C:\Users\massimo\AppData\Roaming\npm\node_modules@vue\cli\node_modules\resolve\lib\sync.js:81:15)
at renderFile (C:\Users\massimo\AppData\Roaming\npm\node_modules@vue\cli\lib\GeneratorAPI.js:440:17)
at _injectFileMiddleware (C:\Users\massimo\AppData\Roaming\npm\node_modules@vue\cli\lib\GeneratorAPI.js:246:27)
at process._tickCallback (internal/process/next_tick.js:68:7)

Result

The src folder is erased

from vue-cli-plugin-template-loader.

elevatebart avatar elevatebart commented on July 3, 2024

I should probably check that vue/cli-plugin-typescript is already installed before I start invoking the plugin.
That is a big bug indeed.

Regarding the empty src folder, what would you expect an empty newcomponent.vue to transform into?
What should I put in the resulting js, css and html files?

from vue-cli-plugin-template-loader.

m4ss1m0g avatar m4ss1m0g commented on July 3, 2024

Regarding the empty src folder, what would you expect an empty newcomponent.vue to transform into?
What should I put in the resulting js, css and html files?

In this case is only a placeholder to show you that installing the plugin delete the src folder, nothing more.

from vue-cli-plugin-template-loader.

elevatebart avatar elevatebart commented on July 3, 2024

This issue should be fixed in v1.0.1

from vue-cli-plugin-template-loader.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.