Bug#930591: [Pkg-javascript-devel] Bug#930591: node-vue-resource is broken - TypeError: vue__WEBPACK_IMPORTED_MODULE_0__.default.http is undefined

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bug#930591: [Pkg-javascript-devel] Bug#930591: node-vue-resource is broken - TypeError: vue__WEBPACK_IMPORTED_MODULE_0__.default.http is undefined

Pirate Praveen-3

Control: tag -1 help

On Sun, 16 Jun, 2019 at 1:25 PM, Pirate Praveen
<[hidden email]> wrote:
> When trying to use packaged version of node-vue-resource, Web Console
> shows this error. UI elements just show the spinning circle forever.
>
> Upstream is using rollup based build system and we converted it to
> webpack when rollup was in contrib. When I tried to switch back to
> rollup when updating to 1.5.1, the build failed (we have an older
> version of rollup than what upstream wants).

Some options,

1. Use https://github.com/purtuga/esm-webpack-plugin to generate esm,
but this needs webpack 4
2. Try with a newer rollup, we will have to wait till rollup is updated
3. Try changing package.json#module to src/index.js
4. Try changing package.json#main to dist/vue-resource.js