Comments (2)
I took a little peek into the source (which can be found at this-part-will-vary-but-you-can-try-the-character-"~"-and-hope-that-works/node_modules/mixwith/mixwith.js
), and it seems like mixwith doesn't support es6 import syntax (what you're trying to use). This really shouldn't be a surpriseWhat you want to do instead is something along the lines of:
const mixwith = require('mixwith')
// Code using mixwith goes here.
You can go here for more information.
from mixwith.js.
Thank you for the response, but no i'm extending a class with a mixin at a time and the issue was related only to frontend development (node.js not there). I think this can be closed.
from mixwith.js.
Related Issues (20)
- instanceof check with multiple mixins HOT 1
- setup misunderstanding? HOT 1
- ES3 Implementation HOT 12
- Decorator syntax HOT 1
- Possible to use bare classes as mixins? HOT 6
- Alternative implementation (multiple inheritance with branching prototype chain) HOT 10
- Does mixwith detect and cache sub chains? HOT 1
- New mixin base on existing class HOT 3
- instance instanceof mixin? HOT 4
- Current Version Not In NPM? HOT 4
- Unexpected behavior using rollup
- Compiled version uses ES6 syntax (=>) HOT 21
- Thanks for the inspiration!
- error TS2339: Property 'emit' does not exist on type 'MyClass2'. HOT 1
- TypeError: m is not a function, when extending a class that uses mixins HOT 3
- Extending HTMLElement and Babel
- Update npm package HOT 2
- Error if Symbol not defined. HOT 1
- #feature-request typescript version. HOT 2
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 mixwith.js.