-
Notifications
You must be signed in to change notification settings - Fork 258
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
Cannot find module 'babel-runtime/core-js/get-iterator' in Electron build #18
Comments
Delete node_modules folder, re npm install~~ |
@miaolz123 I am still getting this error after re-installing everything. I then did a
|
@bram1028 did you resolve the issue yet? |
No. I had abandoned this. I just tried again and got the same error. |
I'm getting this same error when trying to build my Electron app. Everything works fine in dev, but it throws the error listed in production. Any help on this? |
I just ran into this. I did EDIT: Just to clarify, I'm not using Electron; I'm just doing a plain old |
Interesting. I'm not using Electron, I'm using babel with browserify. I ran into this error. Running |
This is an issue for me using Nuxt 2.0.
|
Did you install Babel runtime: |
while. no work |
Same as @leopoldkristjansson , can be bypassed until real solution by adding those dependencies to the package or going to the |
Just ran into this issue. Reinstalling dependencies is getting boring now... |
I was still getting these problems also, so I pasted the VueMarkdown.js file from node_modules into a new file. It's only one file with a bunch of imports, so I did:
It worked, as in it rendered unparsed markdown, which was better than those babel runtime errors. I'm having other issues now related to styling the markdown output. I already abandoned this library because of that but I'm having the same issue with the markdown editor example from the Vue docs, and an article that shows how to make a markdown preview component, AND with vue-tiptap. There seems to be an issue with Long story short, I think I fixed the problem described in here with my described steps, but I'm not sure so I'll just leave this comment about it. Also I recommend caution with just blindly installing |
Getting this issue with vue-cli. |
Same here with Nuxt 2.0.0: These dependencies were not found: friendly-errors 11:29:00 friendly-errors 11:29:00
Imported as follow in a plugin.
|
Same here in a Laravel Mix / Vue project. |
#92 proposes a fork where this issue is fixed. |
Babel 7 has switched to scoped packages, so the rumtime is avaialble under "@babel/rumtime", instead of 'babel-runtime' as in Babel v6. I think the developer would need to update the dependency. In the mean time, explicitly installing babel v6 fixes it for me.
|
I am using yarn, this worked for me
|
it's works for me too. my env is nuxt ^2.0.0.
|
Also ran into this problem, followed the README instructions in a blank vue-cli project. |
I experienced this issue today on our build server, things had been working fine for a few weeks and out of the blue this error started appearing. |
Hi, had this issue today on a fresh install. Here is what I ran: yarn add babel-runtime --save It then compiled and worked. |
Same here in a Nuxt 2.13+ project.
|
Got similar issue as well and I spent quite some time to find the problem, and I just want to put it here so if people search they can find this too: I deployed a Nuxt app with vue-markdown on Google App Engine and got error randomly in some pages that use vue-markdown:
When setting NODE_ENV to "development", it throws similar error of this post.
Note: The error does not shown in local development ( The solution is as stated by many above. |
See more on their issue at miaolz123/vue-markdown#18
See more on their issue at miaolz123/vue-markdown#18
See more on their issue at miaolz123/vue-markdown#18
use macOS 10.14 |
As mentioned above, simply installing import Vue from "vue";
import { install as VueMarkdown } from "vue-markdown/src/build";
Vue.use(VueMarkdown); in your start-up file, or <template>
...
</template>
<script>
import VueMarkdown from "vue-markdown/src/VueMarkdown";
export default {
...,
components: {
VueMarkdown,
...
},
...
};
</script> in the single-file component. If you happen to use this import a lot and don't want to install the plugin globally, you can also add an alias to the webpack config. |
I had this problem today. I went directly into node_modules/vue-markdown and ran npm install there, and it resolved the issue but with a ton of warnings, including
so I upgraded core-js in that folder, and got the error again. It looks like That worked like a charm. |
This is still an issue. Recently installed Nuxt.js version 2.14.6, and then installed vue-markdown to render markdown content for a website. Had to run |
thanks work for me, on Gridsome and Strapi |
still an issue. |
I use your library with electron-vue.
When I run DEV mod - all is well. But after building production version I get an error
Import in component:
The text was updated successfully, but these errors were encountered: