Open Yueyun opened 6 years ago
I'm using babel-plugin-component here's my import import {CanvasPoster} from 'ui-lib' but when I using this: new CanvasPoster() it says
import {CanvasPoster} from 'ui-lib'
new CanvasPoster()
myPoster.vue?7d2b:33 Uncaught (in promise) ReferenceError: CanvasPoster is not defined
but i can console.log(CanvasPoster)
function CanvasPoster() { WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpersclassCallCheckdefault()(this, CanvasPoster);
i can fix this problem to change
import CanvasPoster from 'ui-lib/lib/CanvasPoster',
does anyone know why this happen?
我也遇到了一模一样的问题!
I'm using babel-plugin-component here's my import
import {CanvasPoster} from 'ui-lib'
but when I using this:new CanvasPoster()
it saysbut i can console.log(CanvasPoster)
i can fix this problem to change
does anyone know why this happen?