Javascript “Uncaught TypeError: object is not a function” associativity question

前端 未结 6 485
日久生厌
日久生厌 2020-12-02 14:57

Code is as follows:


    hello




        
6条回答
  •  一个人的身影
    2020-12-02 15:42

    I have this error when compiling and bundling TS with WebPack. It compiles export class AppRouterElement extends connect(store, LitElement){....} into let Sr = class extends (Object(wr.connect) (fn, vr)) {....} which seems wrong because of missing comma. When bundling with Rollup, no error.

提交回复
热议问题