ERROR in ../node_modules/@granite-elements/ace-widget/ace-widget.js
Module build failed (from ../node_modules/babel-loader/lib/index.js):
SyntaxError: /home/gilles/git-repo/smartnetworkagent/node_modules/@granite-elements/ace-widget/ace-widget.js: Support for the experimental syntax 'importMeta' isn't currently enabled (154:43):
152 | * More info on @Polymer/lib/mixins/element-mixin.js`
153 | */
> 154 | static get importMeta() { return import.meta; }
| ^
155 |
156 | async connectedCallback() {
157 | super.connectedCallback();
Add @babel/plugin-syntax-import-meta (https://git.io/vbKK6) to the 'plugins' section of your Babel config to enable parsing.
Even after having tried to add the plugin @babel/plugin-syntax-import-meta to .babelrc, it still doesn’t work, I get the same error as shown above.
Could you also provide us with information on how to proceed to manually add the resources (themes and languages types) to Vaadin ?
SyntaxError: C:[…]
\node_modules@granite-elements\ace-widget\ace-widget.js: Support for the experimental syntax ‘importMeta’ isn’t currently enabled (154:43):
152 | * More info on @Polymer/lib/mixins/element-mixin.js
153 | */
154 | static get importMeta() { return import.meta; }
155 |
156 | async connectedCallback() {
157 | super.connectedCallback();
Add @babel/plugin-syntax-import-meta (https://git.io/vbKK6) to the ‘plugins’ section of your Babel config to enable parsing.
Sorry for the delay in responding, Sebastian Ciesielski’s solution is correct, but this does not allow us to use the themes and the language mode, I update the component solving the commented errors and without using webpack.config.js.
I enclose an image of a base project with functional ace-widget: