-
Notifications
You must be signed in to change notification settings - Fork 772
Open
Description
Describe the bug
Trying to add Vue Language-Tools for the default block parsers that ships with Vue, but it seems to make use of optional chaining and nullish coalescing operators, which throws errors on build.
To Reproduce
Steps to reproduce the behavior:
- Build my feature fork or load any library using optional chaining or nullish coalescing: josh-hemphill/astexplorer
- See error
The full error:
ERROR in ./node_modules/@vue/language-core/lib/virtualFile/computedSfc.js 14:107
Module parse failed: Unexpected token (14:107)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| return res;
| };
> const template = computedNullableSfcBlock('template', 'html', (0, computeds_1.computed)(() => parsed()?.descriptor.template ?? undefined), (_block, base) => {
| const compiledAst = computedTemplateAst(base);
| return mergeObject(base, {
@ ./src/parsers/vue/vue-language-tools-core.js 26:4-37:6
@ ./src/parsers sync ^\.\/(?!utils|transpilers)[^/]+\/(transformers\/([^/]+)\/)?(codeExample\.txt|[^/]+?\.js)$
@ ./src/parsers/index.js
@ ./src/store/reducers.js
@ ./src/app.jsIPWright83
Metadata
Metadata
Assignees
Labels
No labels