This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 148
Version 4.1.3 cannot run #198
Comments
@znck Doesn't we have a test to catch this kind of error? |
It looks like build error. Transpiler seems to mistake querystring for ES6 module and add .default before function calls. |
I've just hit this same bug. 4.1.0 works fine, 4.1.1+ all fail this way.
|
Unfortunately 4.1.0 seems broken on Windows (at least for me) due to #187. If someone needs a quick fix until this is resolved, open |
@Mourdraug Actually I also encounter bugs on Windows and found #187. So I was glad after finding updated version (4.1.3) this week. But... |
@jonataswalker It should be caught in tests. Runtime transpilation of ts-jest is different from tsc. Looking into it. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected behavior
The latest version (4.1.3) can run normally
Actual behavior
There are two problems:
I wrote this last Friday (version 4.1.0) and succeeded.
When I updated this morning (version 4.1.3), it threw an exception:
vue is not a function
After looking up the dist codes, I found that we should modify it to
After doing above, there is still a problem remained:
createVuePartRequest
fromdist/util.js
, containswhere
querystring_1
equals torequire('querystring')
.The key point is that
querystring
package uses CommonJs, not ES6 module. Below isnode_modules/querystring/index.js
:I don't know whether this is a source code bug or a build problem.
Steps to reproduce the behavior
Just use rollup-plugin-vue with empty config.
The text was updated successfully, but these errors were encountered: