Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with "import.meta" syntax #79

Open
UserNobody14 opened this issue Feb 25, 2024 · 0 comments
Open

Issue with "import.meta" syntax #79

UserNobody14 opened this issue Feb 25, 2024 · 0 comments

Comments

@UserNobody14
Copy link

UserNobody14 commented Feb 25, 2024

When running the react component refactor in a file with "import.meta.env.WHATEVER" or some other vite env import, I'm getting this issue:

[ERROR] Error: createSingleInteractiveEdit for node 1102-1769-JsxElement failed: forEachChildWithAttribute: unsupported syntax type MetaProperty
    at t.CodeAssistEngine.createSingleInteractiveEdit (/home/benjamin/.vscode/extensions/p42ai.refactor-3.0.1/server/dist/server-node.js:2:549856)
    at async t.TransformationResult.createCodeAssistAction (/home/benjamin/.vscode/extensions/p42ai.refactor-3.0.1/server/dist/server-node.js:2:570610)
    at async /home/benjamin/.vscode/extensions/p42ai.refactor-3.0.1/server/dist/server-node.js:2:1159853
[ERROR] apps/webapp/src/app/components/BuildInfo.tsx - No action received for code assist '0:extract-jsx-element:1102-1769-JsxElement:'.

If the import.meta statements are commented out, it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant