Comments (8)
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.
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.
The bug is still unsolved, warning Installing this version erase the src folder
from vue-cli-plugin-template-loader.
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.
System
- Vue Cli 4.1.2
- Yarn 1.21.1
- Windows 10
Repro step
vue create -d -n repro
cd repro\src
touch newcomponent.vue
cd ..
Launch the next command on root directoryvue 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.
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.
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.
This issue should be fixed in v1.0.1
from vue-cli-plugin-template-loader.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-cli-plugin-template-loader.