jesse1983 / marko-router5

Flexible and powerful routing for MarkoJS
https://jesse1983.github.io/marko-router5
MIT License
29 stars 4 forks source link

TypeError: Cannot read property 'call' of undefined (Marko 5 & Webpack 5) #31

Closed fabrice8 closed 3 years ago

fabrice8 commented 3 years ago

Hi, I run into the issue below when i migrated from marko v4 to v5 and webpack 5.

TypeError: Cannot read property 'call' of undefined at webpack_require_ (bootstrap:24) at fn (hot module replacement:61) at load (registry-browser.js:27) at getComponentClass (registry-browser.js:53) at Object.createComponent [as createComponent] (registry-browser.js:98) at renderer (renderer.js:145) at renderTagHelper (render-tag.js:15) at _markotemplate..marko_src_runtime_components_rendererWEBPACK_IMPORTED_MODULE18default.t (App.marko:96) at renderer (renderer.js:218) at Template.renderSync (renderable.js:72) at _callee3$ (client.js:358) at tryCatch (runtime.js:63) at Generator.invoke [as _invoke] (runtime.js:294) at Generator.next (runtime.js:119) at asyncGeneratorStep (asyncToGenerator.js:3) at _next (asyncToGenerator.js:25)

Any suggestion, fix or directive will be very helpful. Thank you