On Fri, Mar 27, 2020 at 11:26 am, Xavier <[email protected]> wrote:
Le 27/03/2020 à 11:22, meskio a écrit :Quoting Paolo Greppi (2020-03-25 11:39:01)The previous solution was not working anymore, and in the meantime upstream updated to v3.1.6:https://github.com/vuejs/vue-router/releases I have updated it, and changed again the approach.There is no build error anymore, but I can't guarantee that the UMD build will work in the browser because I have no time to test it (for example in laminar UI).meskio, can you test laminar with the new build ? ThanksI have tried the new build from the salsa ci[0], but laminar package doesn't work. Both firefox and chromium display a similar error in the console:vue-router.min.js:6 Uncaught ReferenceError: require is not defined at e (vue-router.min.js:6) at vue-router.min.js:6 app.js:796 Uncaught ReferenceError: VueRouter is not defined at app.js:796I have not much knowledge on the javascript environment. But tell me if I canhelp somehow. Thank you.Thanks, this means that build is wrong: at least one library is considered as "external".
I can see in dist/vue-router.js
var ref = require("path-to-regexp");
var pathToRegexp = ref.pathToRegexp;
and in package.json "path-to-regexp": "^1.7.0",
where as we have 6.1.0-2
-- Pkg-javascript-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel
