2.7.x Building legacy bundle for production | Declaration or statement expected.

This issue has been created since 2022-07-29.

Version

2.7.8

Reproduction link

stackblitz.com

Steps to reproduce

Screen Shot 2022-07-29 at 11 20 06

(node:9752) [DEP_WEBPACK_TEMPLATE_PATH_PLUGIN_REPLACE_PATH_VARIABLES_HASH] DeprecationWarning: [hash] is now [fullhash] (also consider using [chunkhash] or [contenthash], see documentation for details)
(Use node --trace-deprecation ... to show where the warning was created)
Ôá┤ Building legacy bundle for production...

ERROR Failed to compile with 4 errors

error in node_modules/vue/types/jsx.d.ts:39:7

TS1110: Type expected.
37 | * https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors
38 | */

39 | [v: --${string}]: string | number | undefined
| ^^^^^
40 | }
41 |
42 | type Booleanish = boolean | 'true' | 'false'

error in node_modules/vue/types/jsx.d.ts:39:20

TS1005: ';' expected.
37 | * https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors
38 | */

39 | [v: --${string}]: string | number | undefined
| ^
40 | }
41 |
42 | type Booleanish = boolean | 'true' | 'false'

error in node_modules/vue/types/jsx.d.ts:39:21

TS1128: Declaration or statement expected.
37 | * https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors
38 | */

39 | [v: --${string}]: string | number | undefined
| ^
40 | }
41 |
42 | type Booleanish = boolean | 'true' | 'false'

error in node_modules/vue/types/jsx.d.ts:40:1

TS1128: Declaration or statement expected.
38 | */
39 | [v: --${string}]: string | number | undefined

40 | }
| ^
41 |
42 | type Booleanish = boolean | 'true' | 'false'
43 | type Numberish = number | string

ERROR Error: Build failed with errors.
Error: Build failed with errors.

What is expected?

to build success

What is actually happening?

gettin error and doesnt build project

posva wrote this answer on 2022-07-30

You need to upgrade your TypeScript version to support string literals

ademyalcin27 wrote this answer on 2022-07-30

You need to upgrade your TypeScript version to support string literals

thank you. that's worked;)

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-10-07
Star Count 199821
Watcher Count 6092
Fork Count 32893
Issue Count 587

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Delete handler not executed for resources when the namespace is deleted 1 2022-03-06 2022-09-17
Menu viewhelper shows translated pages having nav_hide=1 2 2021-03-02 2022-05-08
v:debug/v:security.deny broken on TYPO3v10 0 2021-01-06 2022-09-20
v:render.request broken on TYPO3v10 3 2021-01-06 2022-05-08
Error on Bollinger and Ichimoku 1 2020-12-29 2022-03-12
Renko set_brick_size calls atr method which then throws an error from pandas on mismatched series lengths 4 2021-01-08 2022-09-29
Change number of vertices 1 2021-11-07 2022-09-13
Is it reasonable to concatenate 2 different libraries and run SCENIC together? 7 2022-02-11 2022-10-07
Vue router4.0.15 not working with jsx and tsx project 1 2022-06-24 2022-09-04
Google Analytics not work properly 0 2022-06-08 2022-09-25
Python 3.x support (ImportError: No module named 'StringIO') 23 2017-11-12 2022-09-19
Cannot add alt-text to l-marker icon 2 2022-01-06 2022-09-10
Is there no model for clustering? 2 2022-03-17 2022-10-03
I HAVE laser developower 2.0 no work motor with command m3 not blink led green on spin drill 1 2022-06-05 2022-08-11
[augur tree] input alignment must end in .fasta 0 2021-09-20 2022-09-17
networkdiagnostic exception 4 2022-02-24 2022-09-03
`check` desn't catch a problem that prevents `cascade filter` from running 2 2021-11-04 2022-09-22
MatchLayout() fails if the source plot was not previously rendered 4 2021-11-11 2022-09-17
Dependency Dashboard 0 2019-09-23 2022-10-05
Changing note via shortcut key does not commit current tag text 0 2022-06-22 2022-09-18
running CLARE recipe causes TypeError: 'NoneType' object is not callable 1 2021-05-06 2022-08-23
[FEATURE]: how to generate objects in good order, regard less of the elasticity´╝č 3 2021-11-22 2022-10-06
Name collision with flutter localization when using build_runner. 9 2020-11-03 2022-10-05
`Could not find module '@babel/runtime/helpers/esm/regeneratorRuntime'` in a fresh new app 1 2022-05-23 2022-09-26
Fail to install conda 2 2021-09-22 2022-09-03
How can I receive multiple parameters in GET request? 3 2021-09-14 2022-09-29
[MainThread ] [WARNI] Tika server returned status: 405 2 2022-08-08 2022-09-19
Allow User Profile Updates 2 2022-06-29 2022-10-05
Check for wrong lean version 0 2021-05-06 2022-10-01
File Engine Error 2 2021-03-16 2022-01-05
Allow the customisation of the base namespace of the statsd namespace 0 2022-03-23 2022-09-11
Parquet Modular Encryption 3 2022-06-22 2022-08-26
"invalid next size" in convolution_avx2.cpp 0 2022-05-07 2022-09-29
Cancelling GOG games installation show game as installed 0 2022-04-28 2022-09-30
Class Object factory methods do not work 2 2014-08-28 2022-08-15
RFE: Add duplicate detection at databind level 1 2021-06-24 2022-09-30
WelsMallocz bug 2 2021-12-24 2022-01-08
remote db ORM refused 2 2021-04-12 2022-09-27
Account recovery request - Lost recovery codes 0 2022-07-26 2022-08-31
Support for WIN32 2 2021-07-08 2022-01-18
intra_process: message frequency lower than expected, zero-copy? 4 2019-10-17 2022-09-30
A/B testing with APO 1 2021-01-28 2022-09-29
Example doesn't work with namespacing 6 2021-06-23 2022-09-25
Remove Azure Germany cloud option 1 2022-03-24 2022-09-26
Fix opendistro uninstall command 0 2021-10-29 2022-10-05
Empirically determine EAM default chunk sizes for Chrysalis 0 2021-09-11 2022-10-05
$userinfo is null when using google 2 2020-03-10 2022-09-17
Pyright unable to match overloads for os.path.basename 2 2021-09-26 2022-10-03
XINFO wrong reflection provided 0 2022-06-21 2022-09-23
[BUG] <title>Database table meta_ data path_ Desc field cannot be empty exception 2 2021-10-12 2022-09-24