defineProps is not defined with ESbuild
See original GitHub issueI moved from webpack to ESbuild but I get ReferenceError: defineProps is not defined
My config is a bit different from the doc :
plugins: [rails(), vuePlugin(), require('unplugin-vue2-script-setup/esbuild').default()],
instead of
plugins: [rails(), vuePlugin(), require('unplugin-vue2-script-setup/esbuild')()],
Issue Analytics
- State:
- Created a year ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
TIL: ESLint | Fix "'defineProps' is not defined."
Basically in newer vue versions with script setup syntax defineProps is no longer needs to be imported because it is a compliler macro...
Read more >facing a problem of defineProps is not defined - Stack Overflow
I am facing a problem of "defineProps is not defined". I am not sure why is this not working where the code below...
Read more >Using Vue with TypeScript - Vue.js
compilerOptions.isolatedModules is set to true because Vite uses esbuild for transpiling TypeScript and is subject to single-file transpile limitations. If you' ...
Read more >require is not defined vite | The Search Engine You Control
Vite / Vue 3 : "require is not defined" when using image source as props. Asked Oct 24, 2021 • 14 votes 3...
Read more >'GLOBAL' is not defined. Code Example - Code Grepper
Answers related to “'GLOBAL' is not defined.” · wordpress global variable not working · vue 'defineProps' is not defined no-undef · register:48 Uncaught ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems to be a problem with
unplugin
oresbuild-vue
, I’ll try to fix it later.@sxzz Can you help to fix this?