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
Next.js auto wrappers are creating wildcard exports and crashing builds #6085
Comments
Hi, can you share what your |
Hello @lforst, Sure, here is the import '../styles/globals.css'
// react
import React from 'react'
// Nextjs
import Head from 'next/head'
import Router from 'next/router'
// react-hot-toast
import { Toaster } from 'react-hot-toast'
// NProgress Package & CSS
import NProgress from 'nprogress'
import '../styles/nprogress/nprogress.css'
// react-bootstrap
import 'bootstrap/dist/css/bootstrap.min.css'
import SSRProvider from 'react-bootstrap/SSRProvider'
// Error Boundary Component - to show custom Error Message if App is crashed on Client-Side
// eslint-disable-next-line import/extensions
import ErrorBoundary from '@/components/Error_Boundary'
Router.events.on('routeChangeStart', NProgress.start)
Router.events.on('routeChangeError', NProgress.done)
Router.events.on('routeChangeComplete', NProgress.done)
const MyApp = props => {
const { Component, pageProps } = props
return (
<>
<Head>
<title>Title</title>
</Head>
<ErrorBoundary>
<SSRProvider>
<Component {...pageProps} />
<Toaster position="top-right" reverseOrder={false} />
</SSRProvider>
</ErrorBoundary>
</>
)
}
export default MyApp |
I am getting the same error using Windows, macOS works fine |
I am getting the same error at _app.tsx, _document.jsx, _error.tsx, and index.tsx files. Using Windows 11 and Node v16.13.1. |
Another example of this being a problem on Windows: #6074 (comment) |
I'm an windows too and can reproduce the problem by using the regular nextjs example: https://github.com/vercel/next.js/tree/deprecated-main/examples/with-sentry
which will install these versions of the packages ( ├── @sentry/nextjs@7.17.3
├── next@13.0.0
├── react-dom@18.2.0
└── react@18.2.0 after that if I run
When reverting back to @sentry/nextjs 7.16.0 and the error is no more (same as what is decribed in this ticket: #6074 (comment)) |
Hello @lforst, I think this is coming from Sentry, can you please help us to resolve the issue so we can seamlessly use Sentry again, in the Production App to catch errors if something is broken in the Production Web App of Nextjs. |
We just released version |
Confirming that this fixes the issue on Windows build, thank you! |
Environment
SaaS (https://sentry.io/)
Version
7.17.1
Steps to Reproduce
sentry.client.config.js
&sentry.server.config.js
=> code:next.config.js
=> Code:Expected Result
no error should throw if the App is working properly
Actual Result
I am getting this error when I am normally running
npm run dev
. also I've someeslintrc.json
please help me where I'm doing wrong.
The text was updated successfully, but these errors were encountered: