Skip to content
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

Unexpected token import #7

Open
mmikhan opened this issue Apr 22, 2017 · 6 comments
Open

Unexpected token import #7

mmikhan opened this issue Apr 22, 2017 · 6 comments

Comments

@mmikhan
Copy link

mmikhan commented Apr 22, 2017

I'm using this in a Electron Vue project and unfortunately the tooltip isn't working and shows the following error:

Uncaught SyntaxError: Unexpected token import

It looks like the console is having an issue with the first line of the import but I'm not sure what's could be wrong there. Any thoughts about this?

@wateryoma
Copy link

i think the issue is about babel-loader config in your project
i ran into same issue, but i solved it by copying tooltip from node_modules to my project src

@mmikhan
Copy link
Author

mmikhan commented May 4, 2017

I've investigated this a lot but couldn't find any which is even related to the .babelrc file. I was using this with the Electron-Vue boilerplate.

@wateryoma
Copy link

I'm using it with the same template, we have the same case.
I just copied all vue bulma components i needed inside renderer components folder - not very elegant but this way everything works

@mmikhan
Copy link
Author

mmikhan commented May 4, 2017

Yeah, it may work but I don't want to manage any dependencies without the dependency manager. I'd rather switch to a different library or wait until it's fixed.

@wateryoma
Copy link

ok, let's hope it'll be fixed soon
probably you should report this issue at Electron-Vue

@p418
Copy link

p418 commented Sep 20, 2017

I'm also using electron-vue boilerplate and managed to make it work

You need to add vue-bulma-* module to webpack's whitelist .

// .electron-vue/webpack.renderer.config.js:21

let whiteListedModules = ['vue', 'vue-bulma-collapse', 'vue-bulma-tooltip', 'vue-bulma-notification']
let rendererConfig = {
  devtool: '#cheap-module-eval-source-map',
  entry: {
    renderer: path.join(__dirname, '../src/renderer/main.js')
  },
....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants