Code Monkey home page Code Monkey logo

Comments (4)

acrisci avatar acrisci commented on June 5, 2024

You might have the same problem as in #42 which was caused by using the wrong relative path for the alias. See this comment.

from mpris-service.

m0ngr31 avatar m0ngr31 commented on June 5, 2024

I was able to console log and verify that the path is correct from where vue.config.js lives. Maybe there is some issue with that path relative to where it runs webpack from...

I'll research that tonight. But I did try putting bogus paths in and that didn't change the error message at all. So something is up I guess.

from mpris-service.

m0ngr31 avatar m0ngr31 commented on June 5, 2024

So I'm running console.log(config.resolve.alias) inside of the chainWebpack function in vue.config.js, and I can see this:

store:
   Map {
     '@' => '/home/joe/Development/my_project/src',
     'vue$' => 'vue/dist/vue.runtime.esm.js',
     'jsbi' => '/home/joe/Development/my_project/node_modules/jsbi/dist/jsbi-cjs.js' } }

It seems to be setting the alias properly, but I'm still getting the same error. But like I said in the previous post, even putting a completely bogus path has the same effect. So I'm not sure where the problem lies.

from mpris-service.

m0ngr31 avatar m0ngr31 commented on June 5, 2024

Okay, I got it. The electron plugin I'm using for Vue changed the way webpack got configured...

module.exports = {
  pluginOptions: {
    electronBuilder: {
      chainWebpackMainProcess: config => {
        config.resolve.alias.set('jsbi', path.join(__dirname, 'node_modules/jsbi/dist/jsbi-cjs.js'));
      }
    },
  },
};

from mpris-service.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.