question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors when using plugins/packages

See original GitHub issue

Found an issue or bug? Tell me all about!

New to electron so this is very possibly user error, and if so, I apologize in advance. Would very much appreciate some help.

When I import some packages into my project I get syntax errors in the console.

When I use the regular vue webpack-simple template with the same plugins an they work fine. Not sure what I’m doing wrong.

This is not for all plugins, just some. I’m unsure of how to debug the errors. The errors have so far come from template tags and css.

Describe the issue / bug.

#

Console Syntax Errors thrown on some plugins that work in regular vue webpack-simple template

How can I reproduce this problem?

#

vue init simulatedgreg/electron-vue my-project
$ cd my-project
$ npm install
$ cd app
$ npm install vue-video-player --save

then in app/src/renderer/main.js

import VueVideoPlayer from 'vue-video-player'
Vue.use(VueVideoPlayer)

then

$ npm run dev

If visual, provide a screenshot.

# screenshot 2017-04-21 10 43 19

Tell me about your development environment.
  • Node version: 7.9.0
  • NPM version: 4.2.0
  • vue-cli version: 2.8.1
  • Operating System: Mac OSX (darwin platform)

Thank-you

If you are looking to suggest an enhancement or feature, then feel free to remove everything above.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
SimulatedGREGcommented, Apr 23, 2017

@rugor

Quick fix, update your webpack.renderer.config.js at line 19 to…

externals: Object.keys(pkg.dependencies || {}).filter(d => !['vue','vue-video-player'].includes(d)),

Not entirely sure why some modules don’t like to be treated as externals. When installing vue-video-player, did you use npm or yarn?

0reactions
rugorcommented, Aug 23, 2017

Thanks @SimulatedGREG will look into that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VUM stops working when one of the VCs is patched to 6.7 ...
VUM stops working when one of the VCs is patched to 6.7 P01 in enhanced linked mode with error "Could not resolve dependencies...
Read more >
Installing from bro-pkg gives an error · Issue #5
When i try to install from the package manager with: bro-pkg install bro-community-id I get an error stating: Cannot determine Bro source ...
Read more >
Plugins Packages and SolutionPackager mapping file
Does anyone try to configure SolutionPackager mapping file to ignore plugins packages nuget files during extracting and packing operations?
Read more >
11 Errors Which Can Spoil Frontend Developer's Life
In this article you will find a list of 11 Top HTML & CSS mistakes which can spoil a developer's life. ... Use...
Read more >
Provider plugins packages are not passing Lintian
Provider Plugins throws Lintian False-Positive Errors. This because these shared objects does not share any symbols from Glibc and Lintian ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found