You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Codemod does not transform tsx files in project tagspaces
$ npx [email protected] -t v2-to-v3 app/containers/MainPage.tsx... ERR app/containers/MainPage.tsx Transformation error (Unexpected token, expected "," (213:10))SyntaxError: Unexpected token, expected "," (213:10) at constructor (/local/home/trivikr/.npm/_npx/7c563efbb7515419/node_modules/@babel/parser/lib/index.js:356:19) at TypeScriptParserMixin.raise (/local/home/trivikr/.npm/_npx/7c563efbb7515419/node_modules/@babel/parser/lib/index.js:3223:19) at TypeScriptParserMixin.unexpected (/local/home/trivikr/.npm/_npx/7c563efbb7515419/node_modules/@babel/parser/lib/index.js:3253:16) at TypeScriptParserMixin.expect (/local/home/trivikr/.npm/_npx/7c563efbb7515419/node_modules/@babel/parser/lib/index.js:3590:28) at TypeScriptParserMixin.tsParseDelimitedListWorker (/local/home/trivikr/.npm/_npx/7c563efbb7515419/node_modules/@babel/parser/lib/index.js:7819:14) at TypeScriptParserMixin.tsParseDelimitedList (/local/home/trivikr/.npm/_npx/7c563efbb7515419/node_modules/@babel/parser/lib/index.js:7796:25) at TypeScriptParserMixin.tsParseBracketedList (/local/home/trivikr/.npm/_npx/7c563efbb7515419/node_modules/@babel/parser/lib/index.js:7836:25) at TypeScriptParserMixin.tsParseTypeParameters (/local/home/trivikr/.npm/_npx/7c563efbb7515419/node_modules/@babel/parser/lib/index.js:7930:24) at /local/home/trivikr/.npm/_npx/7c563efbb7515419/node_modules/@babel/parser/lib/index.js:9654:29 at TypeScriptParserMixin.tryParse (/local/home/trivikr/.npm/_npx/7c563efbb7515419/node_modules/@babel/parser/lib/index.js:3597:20)
From the error, it appears that the issue is with parser, and not source code.
Self-service
Problem
Codemod does not transform tsx files in project tagspaces
From the error, it appears that the issue is with parser, and not source code.
Solution
Add ability to transform TSX files in codemod
Alternatives
N/A
Additional context
https://github.com/tagspaces/tagspaces/blob/c4a6f1694c6ef9b50c70f7231f3dbbf28e3d18eb/app/containers/MainPage.tsx#L27
The text was updated successfully, but these errors were encountered: