HerringtonDarkholme / kilimanjaro

typed vuex 2.0
62 stars 4 forks source link

Seems av-ts@0.7.1 affects kilimanjaro #14

Open whitetrefoil opened 7 years ago

whitetrefoil commented 7 years ago
    ERROR in ./~/kilimanjaro/dist/src/decorator.js
    Module not found: Error: Can't resolve 'av-ts/dist/src/util' in '.../Vue_TS_Arch/node_modules/kilimanjaro/dist/src'
     @ ./~/kilimanjaro/dist/src/decorator.js 3:13-43
     @ ./~/kilimanjaro/dist/index.js
     @ ./src/vendor.ts
     @ multi ./vendor

    ERROR in ./~/kilimanjaro/dist/src/opt.js
    Module not found: Error: Can't resolve 'av-ts/dist/src/util' in '.../Vue_TS_Arch/node_modules/kilimanjaro/dist/src'
     @ ./~/kilimanjaro/dist/src/opt.js 4:13-43
     @ ./~/kilimanjaro/dist/index.js
     @ ./src/vendor.ts
     @ multi ./vendor

    ERROR in ./~/kilimanjaro/dist/src/store.js
    Module not found: Error: Can't resolve 'av-ts/dist/src/util' in '.../Vue_TS_Arch/node_modules/kilimanjaro/dist/src'
     @ ./~/kilimanjaro/dist/src/store.js 8:13-43
     @ ./~/kilimanjaro/dist/src/opt.js
     @ ./~/kilimanjaro/dist/index.js
     @ ./src/vendor.ts
     @ multi ./vendor

Looks like av-ts@0.7.1 webpacked all js into one bundle breaks kilimanjaro...

HerringtonDarkholme commented 7 years ago

That's sad.... But av-ts is bundled as one file. So no util is exported any more.

The only way to fix this is fix av-ts version to 0.7.0.

Jacknq commented 7 years ago

I do experience same problem.. would be nice when av-ts and Kilimanjaro would be compatible. Even 7.0 breaks with that utils error.

If stay on 6.3 with latest vue I get another err Uncaught TypeError: Cannot read property '__isgetter' of undefined -- this happens when I inherit class with store and you define store prop in super object once more, could be solved with some warning

cocodrino commented 6 years ago

Hi..did you can fix this??? I've the same issue and I don't know how solve it...thank you so much!!!