*.default is not a constructor, with a imported js plugin
问题 I tried to create a simple form validation and registered this via yarn link in a example project to test the set up. But it absolutely doesn't work and I have no idea how to continue. export default class Proofr { constructor() { console.log('test'); } } This "script" is then generated by webpack , with eslint-loader and babel-loader (presets env & stage-0). So it shouldn't do much more than just for fun logging a message. But in when i try to call new Proofr() it tells me following: form.js