Comments (4)
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.
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.
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.
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)
- Error: The module was compiled against a different Node.js version using NODE_MODULE_VERSION 48. HOT 6
- Metadata don't work HOT 5
- CanGoPrevious & CanGoNext variable updating but mpris is not HOT 2
- Add CI HOT 5
- mpris-service 2.0 fails because of JSBI.BigInt with Webpack HOT 9
- Sending/Receiving negative numbers HOT 2
- Player implementation status
- Support multiple instances
- DBus connection error handling
- Documentation hosting HOT 1
- Move to dbusjs organization HOT 2
- TypeError: JSBI.BigInt is not a function HOT 6
- Media Keys stop working after closing window HOT 4
- Got error when detecting the player status using other scripts HOT 3
- Changing property results in EPIPE errors HOT 3
- use latest dbus-next HOT 4
- Typo: `that` instead of `this` HOT 1
- Error while executing `GetAll` on `org.freedesktop.DBus.Properties`
- Can I use this to discover other players? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpris-service.