Comments (8)
You can show a repo, I will test it. @Darkbish
from parcel-plugin-vue.
Sorry for waiting a long time, there was some work to do yestoday.
Repo parcel-demo for testing, @lc60005457 .
thanks!
from parcel-plugin-vue.
I found the reason, parcel-plugin-vue
does not support eslint
, I should use parcel-plugin-eslint
, you can close this issue, @lc60005457 .
from parcel-plugin-vue.
@Darkbish No, not eslint Error.
in '.babelrc'
{
"presets": [
[
"env",
{
"modules": false // Here is murderer.
},
...
]
],
...
}
"modules": false
will tell babel not to transform 'import and export', my vue compiler throw this Error.
If you need "modules": false
, like parcel-bundler used a 'babel-plugin-transform-es2015-modules-commonjs', you can edit '.babelrc'
{
"presets": [
[
"env",
{
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "ie > 9"]
}
}
]
],
"plugins": [
"babel-plugin-transform-es2015-modules-commonjs", // add this line
...
]
}
from parcel-plugin-vue.
Build success. But new issue occured, when I open the address in browser, the console printed
Error: Cannot find module 'babel-runtime/core-js/symbol/to-string-tag'
webpack
use "module": false
for tree shaking
, does parcel
support this feature?
from parcel-plugin-vue.
@Darkbish Parcel looks like not supporttree shaking
, just I thinking.
You can ask parcel developers for right answers, and I will try to do compatibility.
Error: Cannot find module 'babel-runtime/core-js/symbol/to-string-tag'
Try to remove 'parcel-plugin-vue', then test it, Error also.
{
...
"plugins": [
"transform-runtime", // Here is murderer.
]
}
Need parcel support.
from parcel-plugin-vue.
emm, Parcel
does not seem suitable for development right now, back to webpack
.
Thanks @lc60005457
from parcel-plugin-vue.
It is not be unsuited to prod env just now.
But Parcel is developing rapidly, It will be better.
from parcel-plugin-vue.
Related Issues (20)
- [dependency error] No matching version found for require-from-string@^1.1.0
- Dynamic import - Error: Cannot find module 'xxx' HOT 1
- Problem with images in html templates inside .vue components
- Hot-reload/compile not working with single file components HOT 2
- How to run Autoprefixer on styles? HOT 6
- Unknown custom element - using Parcel, SFCs and TypeScript HOT 1
- [Bug] @import statement in <style> section does not work HOT 1
- Vue imported twice
- Vue SFC implementation failed.
- JSPackager issue
- extractCss bug in production environment HOT 2
- Maximum call stack size exceeded when add vue coms.
- Style import doesn't work if async import used HOT 1
- How to use assets within `style` part?
- Can't find module 'vue-hot-reload-api'
- Cannot read property 'targets' of undefined
- Console outputs same error multiple times HOT 1
- Source map does not work HOT 1
- Deprecated too soon
- 需要 1.4.1 版本的 parcel 才能兼容 parcel-plugin-vue + babel 的 import()异步导入 HOT 4
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 parcel-plugin-vue.