You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my app I was using the import { createBaklava } from "baklavajs"; syntax.
Unfortunately since the latest build 1.10.0 this throws an error:
Uncaught exception - Error: Uncaught (in promise): Error: Cannot find module 'undefined'
Error: Cannot find module 'undefined'
at webpackEmptyContext (http://localhost/src_app_pages_vendor-tooling_vendor-tooling_module_ts.js:14767:21)
at Object.553 (http://localhost/src_app_pages_vendor-tooling_vendor-tooling_module_ts.js:21112:71)
at __nested_webpack_require_107280__ (http://localhost/src_app_pages_vendor-tooling_vendor-tooling_module_ts.js:21171:45)
at Object.2659 (http://localhost/src_app_pages_vendor-tooling_vendor-tooling_module_ts.js:19985:56)
at __nested_webpack_require_107280__ (http://localhost/src_app_pages_vendor-tooling_vendor-tooling_module_ts.js:21171:45)
at Object.6716 (http://localhost/src_app_pages_vendor-tooling_vendor-tooling_module_ts.js:20094:75)
at __nested_webpack_require_107280__ (http://localhost/src_app_pages_vendor-tooling_vendor-tooling_module_ts.js:21171:45)
at Object.8681 (http://localhost/src_app_pages_vendor-tooling_vendor-tooling_module_ts.js:18696:209)
at __nested_webpack_require_107280__ (http://localhost/src_app_pages_vendor-tooling_vendor-tooling_module_ts.js:21171:45)
at Object.5721 (http://localhost/src_app_pages_vendor-tooling_vendor-tooling_module_ts.js:18030:95) Error: Uncaught (in promise): Error: Cannot find module 'undefined'
Error: Cannot find module 'undefined'
at webpackEmptyContext (index.js:18:10)
at Object.553 (index.js:2799:18)
at __nested_webpack_require_107280__ (index.js:2823:42)
at Object.2659 (index.js:2104:61)
at __nested_webpack_require_107280__ (index.js:2823:42)
at Object.6716 (index.js:2168:80)
at __nested_webpack_require_107280__ (index.js:2823:42)
at Object.8681 (index.js:1121:214)
at __nested_webpack_require_107280__ (index.js:2823:42)
at Object.5721 (index.js:713:100)
...
The relevant lines from the baklavajs/dist/index.js file is:
So the error happens while referencing the vue module, which should be defined as an external module. This still works in the js version of the baklavajs submodules, for example in the @baklavajs/plugin-options-vue/dist/index.js:
I was able to workaround this by only using the @baklavajs/... packages and recreating the createBaklava function in my codebase, and patching the subpackage package.json files to use the js version when using import: "exports": { "import": "index.js", ...}. Of course that is quite hacky...
The text was updated successfully, but these errors were encountered:
Hi, thanks for the latest release!
In my app I was using the
import { createBaklava } from "baklavajs";
syntax.Unfortunately since the latest build 1.10.0 this throws an error:
The relevant lines from the
baklavajs/dist/index.js
file is:So the error happens while referencing the vue module, which should be defined as an external module. This still works in the js version of the baklavajs submodules, for example in the
@baklavajs/plugin-options-vue/dist/index.js
:and later
Interestingly, in the cjs version (
@baklavajs/plugin-options-vue/dist/index.cjs
) it is broken:I was able to workaround this by only using the
@baklavajs/...
packages and recreating the createBaklava function in my codebase, and patching the subpackage package.json files to use the js version when using import:"exports": { "import": "index.js", ...}
. Of course that is quite hacky...The text was updated successfully, but these errors were encountered: