SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.48k stars 1.55k forks source link

Uncaught SyntaxError: Unexpected token export #915

Closed ChangJoo-Park closed 4 years ago

ChangJoo-Park commented 5 years ago

Found an issue or bug with electron-vue? Tell me all about it!

Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.

Describe the issue / bug.

#

Add https://github.com/jinjiang/vue-mark-display in electron-vue project.

How can I reproduce this problem?

#

npm run dev
If visual, provide a screenshot.

#

image
Tell me about your development environment.

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

tahaferhani commented 4 years ago

You should add vue-mark-display to whitelist in .electron-vue/webpack.renderer.config.js

/**
 * List of node_modules to include in webpack bundle
 *
 * Required for specific packages like Vue UI libraries
 * that provide pure *.vue files that need compiling
 * https://simulatedgreg.gitbooks.io/electron-vue/content/en/webpack-configurations.html#white-listing-externals
 */
let whiteListedModules = ['vue', 'vue-mark-display']