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 the current Elastic UI version (^97), the package includes some JSON files (like logicals.json), which define styles or other configuration data. These files are not JavaScript files, but the esbuild-dynamic-import plugin in esbuild (to build the JS widgets) is by default trying to process them as if they were. As a result, when it tries to parse these JSON files, it encounters an invalid syntax and we get the error:
Building terminology-service-suite.min.js
✘ [ERROR] Expected ";" but found ":"
node_modules/@elastic/eui/es/global_styling/functions/logicals.json:2:10:
2 │ "height": "block-size",
│ ^
╵ ;
✘ [ERROR] Expected ";" but found ":"
We need to modify the esbuild-dynamic-import plugin source code to allow JS and JSON files to be processed. This is the first try: ts4nfdi/esbuild-dynamic-import@1012415
Pros:
Cons:
The text was updated successfully, but these errors were encountered: