fix(vue-jsx): support jsx imports with queries#7121
Conversation
|
Any ETAs when this wonderful fix would be released? 😄 |
|
@baryla published as plugin-vue-jsx@1.3.8 |
|
Not sure if this is the correct spot for this, but I think I am facing the same issue but with the react plugin (and in a .js file). I may be way off on why this is erroring out, but the query is the only thing I have come up with. Any chance of getting this fix ported over to the react plugin as well if it is indeed the issue? This is with the react-native-reanimated package that supports the web (and webpack is seemingly unaffected). 12:10:47 PM [vite] Internal server error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.
Plugin: vite:import-analysis
File: /Users/123/Documents/code/omniv1/node_modules/react-native-reanimated/lib/reanimated1/Transitioning.js?v=14818354
36 | <TransitioningContext.Consumer>
37 | {(context) => <Comp context={context} {...props} />}
38 | </TransitioningContext.Consumer>
| ^
39 | );
40 | };
at formatError (/Users/123/Documents/code/omniv1/node_modules/vite/dist/node/chunks/dep-9c153816.js:38098:46)
at TransformContext.error (/Users/123/Documents/code/omniv1/node_modules/vite/dist/node/chunks/dep-9c153816.js:38094:19)
at TransformContext.transform (/Users/123/Documents/code/omniv1/node_modules/vite/dist/node/chunks/dep-9c153816.js:69775:22)
at async Object.transform (/Users/123/Documents/code/omniv1/node_modules/vite/dist/node/chunks/dep-9c153816.js:38334:30)
at async doTransform (/Users/123/Documents/code/omniv1/node_modules/vite/dist/node/chunks/dep-9c153816.js:53030:29)
12:10:47 PM [vite] Internal server error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.
Plugin: vite:import-analysis
File: /Users/123/Documents/code/omniv1/node_modules/react-native-reanimated/lib/reanimated2/component/FlatList.js?v=14818354
19 | return (<WrappedComponents.View layout={itemLayoutAnimation} onLayout={props.onLayout}>
20 | {props.children}
21 | </WrappedComponents.View>);
| ^
22 | };
23 | return cellRenderer;
at formatError (/Users/123/Documents/code/omniv1/node_modules/vite/dist/node/chunks/dep-9c153816.js:38098:46)
at TransformContext.error (/Users/123/Documents/code/omniv1/node_modules/vite/dist/node/chunks/dep-9c153816.js:38094:19)
at TransformContext.transform (/Users/123/Documents/code/omniv1/node_modules/vite/dist/node/chunks/dep-9c153816.js:69775:22)
at async Object.transform (/Users/123/Documents/code/omniv1/node_modules/vite/dist/node/chunks/dep-9c153816.js:38334:30)
at async doTransform (/Users/123/Documents/code/omniv1/node_modules/vite/dist/node/chunks/dep-9c153816.js:53030:29)
|
@gorbypark did you find any solution? 🥲 |
Description
Fixes #7118
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).