Open Keller18306 opened 2 years ago
After compiling:
> build > mtasa-lua-utils build node_modules/lua-types/core/coroutine.d.ts(31,8): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/coroutine.d.ts(50,68): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/coroutine.d.ts(56,37): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/debug.d.ts(38,8): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/debug.d.ts(131,51): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/global.d.ts(37,4): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/global.d.ts(134,4): error TS2304: Cannot find name 'LuaIterable'. node_modules/lua-types/core/global.d.ts(134,16): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/global.d.ts(153,52): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/global.d.ts(167,37): error TS2304: Cannot find name 'AnyNotNil'. node_modules/lua-types/core/global.d.ts(168,8): error TS2304: Cannot find name 'LuaTable'. node_modules/lua-types/core/global.d.ts(169,4): error TS2304: Cannot find name 'LuaIterable'. node_modules/lua-types/core/global.d.ts(169,16): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/global.d.ts(170,34): error TS2304: Cannot find name 'LuaIterable'. node_modules/lua-types/core/global.d.ts(170,46): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/global.d.ts(184,4): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/global.d.ts(189,4): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/global.d.ts(233,58): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/index.d.ts(1,23): error TS2688: Cannot find type definition file for '@typescript-to-lua/language-extensions'. node_modules/lua-types/core/io.d.ts(63,8): error TS2304: Cannot find name 'LuaIterable'. node_modules/lua-types/core/io.d.ts(64,9): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/io.d.ts(87,8): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/io.d.ts(101,53): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/io.d.ts(110,8): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/io.d.ts(144,51): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/io.d.ts(181,8): error TS2304: Cannot find name 'LuaIterable'. node_modules/lua-types/core/io.d.ts(182,9): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/io.d.ts(217,8): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/io.d.ts(241,8): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/io.d.ts(265,42): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/math.d.ts(81,31): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/os.d.ts(111,40): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/os.d.ts(118,56): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/string.d.ts(29,55): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/string.d.ts(65,8): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/string.d.ts(124,50): error TS2304: Cannot find name 'LuaIterable'. node_modules/lua-types/core/string.d.ts(124,62): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/string.d.ts(158,8): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/core/string.d.ts(180,64): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/special/5.1-only.d.ts(18,4): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/special/5.1-only.d.ts(24,47): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/special/5.1-only.d.ts(38,4): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/special/5.1-only.d.ts(55,4): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/special/5.1-only.d.ts(91,54): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/special/5.1-only.d.ts(96,8): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/special/5.1-or-jit.d.ts(22,52): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/special/5.1-or-jit.d.ts(23,63): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/special/5.1-or-jit.d.ts(102,33): error TS2304: Cannot find name 'LuaMultiReturn'. node_modules/lua-types/special/5.1-or-jit.d.ts(103,36): error TS2304: Cannot find name 'LuaMultiReturn'.
A clear and concise description of what the bug is.
Install this boilerplate
win11
{ npm: '8.12.1', node: '16.15.1', v8: '9.4.146.24-node.21', uv: '1.43.0', zlib: '1.2.11', brotli: '1.0.9', ares: '1.18.1', modules: '93', nghttp2: '1.47.0', napi: '8', llhttp: '6.0.4', openssl: '1.1.1o+quic', cldr: '40.0', icu: '70.1', tz: '2021a3', unicode: '14.0', ngtcp2: '0.1.0-DEV', nghttp3: '0.1.0-DEV' }
test@ C:\MTA Server\server\mods\deathmatch\resources\[ZombiePlague] ├── @typescript-eslint/eslint-plugin@4.33.0 ├── @typescript-eslint/parser@4.33.0 ├── @typescript-to-lua/language-extensions@1.0.0 ├── eslint@7.32.0 ├── mtasa-lua-types@1.1.0 ├── mtasa-lua-utils@1.0.4 ├── prettier@2.7.1 ├── typescript-to-lua@1.3.4 └── typescript@4.5.5
I fixed it by adding this line to tsconfig.json (and of course install it as dev)
Same here :)
Dependencies are broken, I guess Workaround: to install the specified version of the lua-types lib:
lua-types
npm install -D lua-types@2.12.1
Describe the bug
After compiling:
A clear and concise description of what the bug is.
To Reproduce
Install this boilerplate
Screenshots
Desktop information
win11
NPM Version
NPM Package versions
Additional context
I fixed it by adding this line to tsconfig.json (and of course install it as dev)