transformer not recognized

i updated some dependencies and of course roblox ts has to pass away package.json:
{
...

"devDependencies": {
"@rbxts/compiler-types": "^2.1.0-types.1",
"@rbxts/types": "^1.0.647",
"@typescript-eslint/eslint-plugin": "^4.28.4",
"@typescript-eslint/parser": "^4.28.4",
"eslint": "^7.31.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-roblox-ts": "^0.0.30",
"prettier": "^2.3.2",
"rbxts-transform-debug": "^2.0.3",
"rbxts-transform-env": "^2.0.4",
"rbxts-transformer-flamework": "^1.0.0-beta.21",
"rbxts-transformer-switchcase": "^1.0.1",
"roblox-ts": "^2.1.0",
"typescript": "^4.9.4"
},
"dependencies": {
"@flamework/components": "^1.0.0-beta.21",
"@flamework/core": "^1.0.0-beta.21",
"@flamework/networking": "^1.0.0-beta.21",
"@rbxts/fastcast": "^13.2.0-ts.2",
"@rbxts/janitor": "^1.14.1-ts.1",
"@rbxts/partcache": "^1.1.1",
"@rbxts/profileservice": "^1.4.1",
"@rbxts/roact": "^1.4.4-ts.0",
"@rbxts/roact-hooked": "^2.3.3",
"@rbxts/roact-hooked-plus": "^1.8.1",
"@rbxts/roact-rodux": "^0.2.2-ts.8",
"@rbxts/rodux": "^3.0.0-ts.3",
"@rbxts/services": "^1.5.1",
"@rbxts/signal": "^1.1.1",
"minimatch": "^3.0.5"
}
}
{
...

"devDependencies": {
"@rbxts/compiler-types": "^2.1.0-types.1",
"@rbxts/types": "^1.0.647",
"@typescript-eslint/eslint-plugin": "^4.28.4",
"@typescript-eslint/parser": "^4.28.4",
"eslint": "^7.31.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-roblox-ts": "^0.0.30",
"prettier": "^2.3.2",
"rbxts-transform-debug": "^2.0.3",
"rbxts-transform-env": "^2.0.4",
"rbxts-transformer-flamework": "^1.0.0-beta.21",
"rbxts-transformer-switchcase": "^1.0.1",
"roblox-ts": "^2.1.0",
"typescript": "^4.9.4"
},
"dependencies": {
"@flamework/components": "^1.0.0-beta.21",
"@flamework/core": "^1.0.0-beta.21",
"@flamework/networking": "^1.0.0-beta.21",
"@rbxts/fastcast": "^13.2.0-ts.2",
"@rbxts/janitor": "^1.14.1-ts.1",
"@rbxts/partcache": "^1.1.1",
"@rbxts/profileservice": "^1.4.1",
"@rbxts/roact": "^1.4.4-ts.0",
"@rbxts/roact-hooked": "^2.3.3",
"@rbxts/roact-hooked-plus": "^1.8.1",
"@rbxts/roact-rodux": "^0.2.2-ts.8",
"@rbxts/rodux": "^3.0.0-ts.3",
"@rbxts/services": "^1.5.1",
"@rbxts/signal": "^1.1.1",
"minimatch": "^3.0.5"
}
}
tsconfig.json:
{
"compilerOptions": {
...

"plugins": [
{
"transform": "rbxts-transformer-flamework",
"obfuscation": true
},
{
"transform": "rbxts-transform-env"
},
{
"transform": "rbxts-transform-debug"
}
]
}
}
{
"compilerOptions": {
...

"plugins": [
{
"transform": "rbxts-transformer-flamework",
"obfuscation": true
},
{
"transform": "rbxts-transform-env"
},
{
"transform": "rbxts-transform-debug"
}
]
}
}
5 Replies
runic
runicOP3y ago
PS E:\@home\runic\Dev\typescript\roblox\Blackout> rbxtsc
src/client/controllers/fps.ts:8:24 - error TS roblox-ts: You cannot use modules directly under node_modules.

8 import { $error } from "rbxts-transform-debug";
~~~~~~~~~~~~~~~~~~~~~~~

src/client/controllers/fps.ts:8:10 - error TS roblox-ts: Invalid Luau identifier!
Luau identifiers must start with a letter and only contain letters, numbers, and underscores.
Reserved Luau keywords cannot be used as identifiers.

8 import { $error } from "rbxts-transform-debug";
PS E:\@home\runic\Dev\typescript\roblox\Blackout> rbxtsc
src/client/controllers/fps.ts:8:24 - error TS roblox-ts: You cannot use modules directly under node_modules.

8 import { $error } from "rbxts-transform-debug";
~~~~~~~~~~~~~~~~~~~~~~~

src/client/controllers/fps.ts:8:10 - error TS roblox-ts: Invalid Luau identifier!
Luau identifiers must start with a letter and only contain letters, numbers, and underscores.
Reserved Luau keywords cannot be used as identifiers.

8 import { $error } from "rbxts-transform-debug";
might wanna post the actual issue ive also tried removing dist, build info, and node modules then reinstalling + rebuilding and it didnt work
Fireboltofdeath
try upgrading rbxts-transform-debug to 2.1.0-beta.0
runic
runicOP3y ago
you just have all the answers dont you? i tried upgrading to 2.0.4 from 2.0.3 but it didnt exist so i assumed 2.0.3 was the highest version this is what i get for not looking at npm ok now transform-env doesnt wanna work i updated it to 2.1.0-beta.0 as well ping me if u respond
Fireboltofdeath
transform-env is on beta.3 @runic
runic
runicOP3y ago
why am i braindead alright everything works, thanks again

Did you find this page helpful?