Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: defineNitroPlugin is undefined after build in nitro.mjs #94

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

jbjorge
Copy link
Contributor

@jbjorge jbjorge commented Dec 28, 2024

Fixes issue with defineNitroPlugin being undefined when running nuxi preview in nuxt 4 as reported in #92

.output/server/chunks/nitro/nitro.mjs:13178                                                          
const _FAcPlHCrZY = defineNitroPlugin((nitro) => {                                                                                  
                    ^                                                                                                               
ReferenceError: defineNitroPlugin is not defined                                                                                    
    at file:///.output/server/chunks/nitro/nitro.mjs:13178:21                                                

@hywax-assistant
Copy link
Collaborator

👋 @jbjorge

💖 Thanks for opening this pull request!

Please follow the contributing guidelines. And we use semantic commit messages to streamline the release process.

Examples of commit messages with semantic prefixes:

  • fix: interval for sending a request in the base service
  • feat: add new NAME service
  • docs: example of using the NAME service

If you like this project, please ⭐ star our repo.

Fixes issue with defineNitroPlugin being undefined when running `nuxi preview` in nuxt 4.
```
.output/server/chunks/nitro/nitro.mjs:13178
const _FAcPlHCrZY = defineNitroPlugin((nitro) => {
                    ^
ReferenceError: defineNitroPlugin is not defined
    at file:///.output/server/chunks/nitro/nitro.mjs:13178:21
```
@jbjorge jbjorge changed the title Update module.ts to fix #92 fix: defineNitroPlugin is undefined after build in nitro.mjs Dec 28, 2024
@hywax hywax merged commit 2374647 into hywax:main Dec 29, 2024
@hywax-assistant
Copy link
Collaborator

👋 @jbjorge Congrats on merging your first pull request! 🎉

If you like this project, please ⭐ star our repo.

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

Successfully merging this pull request may close these issues.

3 participants