question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

defineProps is not defined with ESbuild

See original GitHub issue

I 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:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sxzzcommented, Apr 28, 2022

It seems to be a problem with unplugin or esbuild-vue, I’ll try to fix it later.

1reaction
xiaoxiangmoecommented, Apr 28, 2022

@sxzz Can you help to fix this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found