getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.97k stars 1.57k forks source link

The integration for node profiling (nodeProfilingIntegration) is causing the Next.js build to fail. #11078

Closed myan-pelmorex closed 7 months ago

myan-pelmorex commented 7 months ago

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

7.106.1

Framework Version

React 18, NextJS 13.4.1

Link to Sentry event

https://pelmorex-g0.sentry.io/settings/organization/

SDK Setup

import * as Sentry from "@sentry/nextjs"; import { nodeProfilingIntegration } from "@sentry/profiling-node";

Sentry.init({ dsn: "https://e146d686c83d02bccc8f43b853d5be63@o4506899912720384.ingest.us.sentry.io/4506899915014144",

// Set tracesSampleRate to 1.0 to capture 100% // of transactions for performance monitoring. // We recommend adjusting this value in production tracesSampleRate: 1.0,

profilesSampleRate: 1.0, // Profiling sample rate is relative to tracesSampleRate

integrations: [ // Add profiling integration to list of integrations nodeProfilingIntegration(), ],

// ...

// Note: if you want to override the automatic release value, do not set a // release value here - use the environment variable SENTRY_RELEASE, so // that it will also get attached to your source maps });

Steps to Reproduce

We are evaulting sentry in our nx based monorepo for one of the nextjs app-router based application.

With above sentry.server.config.js when we ran command nx build [app-name] the build process failed with error `Error: Failed to collect page data from /[route-name|page-name].

The build pass after we comment out the nodeProfilingIntegration(), inside of integrations

Expected Result

The build should pass and we should able to see the cpu profiling data in sentry.io profiling dashboard

Actual Result

The build is broken due to nodeProfilingIntegration

JonasBa commented 7 months ago

@myan-pelmorex can you share any stack trace or more detailed error that you've seen? Ideally, a reproducible example would be great, but the error you shared isn't giving us much info about what might be going wrong here.

myan-pelmorex commented 7 months ago

@JonasBa here is the logs and error stacks:

npx nx build weather-app

nx run weather-app:git-info

apps/weather-app/src
sentry
1.3.0
4335c9795
2.0.80

nx run weather-app:build:production

- info Creating an optimized production build...
warn  - It seems like you don't have a global error handler set up. It is recommended that you add a global-error.js file with Sentry instrumentation so that React rendering errors are reported to Sentry. Read more: https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#react-render-errors-in-app-router
warn  - In order to be able to deminify errors, @sentry/nextjs creates sourcemaps and uploads them to the Sentry server. Depending on your deployment setup, this means your original code may be visible in browser devtools in production. To prevent this, set hideSourceMaps to true in the sentry options in your next.config.js. To disable this warning without changing sourcemap behavior, set hideSourceMaps to false. (In @sentry/nextjs version 8.0.0 and beyond, this option will default to true.) See https://webpack.js.org/configuration/devtool/ and https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#use-hidden-source-map for more information.
- warn Compiled with warnings
../../node_modules/@sentry/profiling-node/lib/index.js
Critical dependency: the request of a dependency is an expression
Import trace for requested module:
../../node_modules/@sentry/profiling-node/lib/index.js
./sentry.server.config.js
./src/app/healthcheck/weather/route.ts
../../libs/shared/ads/src/index.ts
The requested module './lib/provider/AdsContext' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/provider/'
Import trace for requested module:
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx
../../libs/shared/ads/src/index.ts
The requested module './lib/components' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/provider/'
Import trace for requested module:
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx
../../libs/shared/ads/src/index.ts
The requested module './lib/hooks' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/provider/'
Import trace for requested module:
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx
../../libs/shared/ads/src/index.ts
The requested module './lib/ad-params-context' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/provider/'
Import trace for requested module:
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx
../../libs/shared/ads/src/index.ts
The requested module './lib/components/sponsor-ad' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/provider/'
Import trace for requested module:
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx
../../libs/shared/ads/src/lib/components/index.ts
The requested module './tapad-pixel' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './advertising-slot'
Import trace for requested module:
../../libs/shared/ads/src/lib/components/index.ts
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx
../../libs/shared/ads/src/lib/components/index.ts
The requested module './styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './advertising-slot'
Import trace for requested module:
../../libs/shared/ads/src/lib/components/index.ts
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx
../../libs/shared/analytics/src/index.ts
The requested module './lib/components' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/hooks'
Import trace for requested module:
../../libs/shared/analytics/src/index.ts
../../libs/shared/twnmm/ui/src/lib/ContentLineup/ContentLineupItem.tsx
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/analytics/src/lib/components/index.tsx
The requested module './ViewTracker' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './ClickTracker'
Import trace for requested module:
../../libs/shared/analytics/src/lib/components/index.tsx
../../libs/shared/analytics/src/index.ts
../../libs/shared/twnmm/ui/src/lib/ContentLineup/ContentLineupItem.tsx
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/analytics/src/lib/components/index.tsx
The requested module './ComScoreDirect' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './ClickTracker'
Import trace for requested module:
../../libs/shared/analytics/src/lib/components/index.tsx
../../libs/shared/analytics/src/index.ts
../../libs/shared/twnmm/ui/src/lib/ContentLineup/ContentLineupItem.tsx
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/components/src/index.ts
The requested module './lib/content-feed' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/MessagePopUp'
Import trace for requested module:
../../libs/shared/components/src/index.ts
./src/app/[lang]/layout.tsx
../../libs/shared/components/src/lib/content-feed/index.tsx
The requested module './content-feed-client-container' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './content-feed-client'
Import trace for requested module:
../../libs/shared/components/src/lib/content-feed/index.tsx
../../libs/shared/components/src/index.ts
./src/app/[lang]/layout.tsx
../../libs/shared/consent-management/src/index.ts
The requested module './CookieBar' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './ConsentManagementProvider'
Import trace for requested module:
../../libs/shared/consent-management/src/index.ts
./src/app/not-found.tsx
../../libs/shared/taboola/src/index.ts
The requested module './widget' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './provider'
Import trace for requested module:
../../libs/shared/taboola/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/Common' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/ResponsiveBar/variations/SecondaryNavigationBar' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/SecondaryNavigation' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/SiteChrome/UnifiedNavigation/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/Slider' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/Slider/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/Layout/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/ContentfulImage' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/LazyLoad' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/ModuleTitle/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/AnimatedCarousel' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/AnimatedCarousel/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/AssistantCallout' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/no-scrollbar-slider/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/padded-slider/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/lib/Common/index.tsx
The requested module './CloseButton/index.styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './tile'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/lib/Common/index.tsx
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/shared/twnmm/ui/src/lib/Common/index.tsx
The requested module './Fragments/index.styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './tile'
Import trace for requested module:
../../libs/shared/twnmm/ui/src/lib/Common/index.tsx
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx
../../libs/site-chrome/src/SiteChrome/index.ts
The requested module './TopBannerSlot' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './SiteChrome'
Import trace for requested module:
../../libs/site-chrome/src/SiteChrome/index.ts
../../libs/site-chrome/src/index.ts
./src/app/not-found.tsx
../../libs/video/components/src/index.ts
The requested module './lib/CurrentWeatherVideoPlayer' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/JWPlayer/jw-player'
Import trace for requested module:
../../libs/video/components/src/index.ts
./src/app/[lang]/[profileType]/[country]/[province]/[city]/current/page.tsx
../../libs/weather/components/src/index.ts
The requested module './lib/popular-locations' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'
Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx
../../libs/weather/components/src/index.ts
The requested module './lib/nearby-locations' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'
Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx
../../libs/weather/components/src/index.ts
The requested module './lib/detailed-obs/slider/slider-client' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'
Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx
../../libs/weather/components/src/index.ts
The requested module './lib/forecasts-widgets/hourly-forecast-widget-client' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'
Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx
../../libs/weather/components/src/index.ts
The requested module './lib/forecasts-widgets//seven-days-forecast-widget-client' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'
Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx
../../libs/weather/components/src/index.ts
The requested module './lib/forecasts-widgets//fourteen-days-forecast-widget-client' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'
Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx
../../libs/weather/components/src/index.ts
The requested module './lib/ReportsModuleServer/reports-module-client' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'
Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx
../../libs/weather/ui/src/index.ts
The requested module './lib/map-fuse-image/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/detailed-obs/Slider/styled'
Import trace for requested module:
../../libs/weather/ui/src/index.ts
../../libs/weather/components/src/lib/StormCentreCallout/index.tsx
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx
../../libs/weather/ui/src/index.ts
The requested module './lib/forecasts-module' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/detailed-obs/Slider/styled'
Import trace for requested module:
../../libs/weather/ui/src/index.ts
../../libs/weather/components/src/lib/StormCentreCallout/index.tsx
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx
- info Skipping linting
- info Checking validity of types...
- info Collecting page data...
Error: node-loader:
Error: /home/myan/Workspaces/web/twn-react-web/dist/apps/weather-app/.next/server/chunks//weather-app-assets/_next/b5d0ca73e7626ca90fc4dc3c3dbb6c71.node: cannot open shared object file: No such file or directory
    at 67610 (/home/myan/Workspaces/web/twn-react-web/dist/apps/weather-app/.next/server/chunks/693.js:13479:9)
    at __webpack_require__ (/home/myan/Workspaces/web/twn-react-web/dist/apps/weather-app/.next/server/webpack-runtime.js:25:43)
    at importCppBindingsModule (/home/myan/Workspaces/web/twn-react-web/dist/apps/weather-app/.next/server/chunks/693.js:2490:28)
    at 9162 (/home/myan/Workspaces/web/twn-react-web/dist/apps/weather-app/.next/server/chunks/693.js:2524:36)
    at __webpack_require__ (/home/myan/Workspaces/web/twn-react-web/dist/apps/weather-app/.next/server/webpack-runtime.js:25:43)
    at 9558 (/home/myan/Workspaces/web/twn-react-web/dist/apps/weather-app/.next/server/chunks/154.js:96:80)
    at __webpack_require__ (/home/myan/Workspaces/web/twn-react-web/dist/apps/weather-app/.next/server/webpack-runtime.js:25:43)
    at 20591 (/home/myan/Workspaces/web/twn-react-web/dist/apps/weather-app/.next/server/app/healthcheck/weather/route.js:128:28)
    at __webpack_require__ (/home/myan/Workspaces/web/twn-react-web/dist/apps/weather-app/.next/server/webpack-runtime.js:25:43)
    at __webpack_exec__ (/home/myan/Workspaces/web/twn-react-web/dist/apps/weather-app/.next/server/app/healthcheck/weather/route.js:242:39)
> Build error occurred
Error: Failed to collect page data for /healthcheck/weather
    at /home/myan/Workspaces/web/twn-react-web/node_modules/next/dist/build/utils.js:1150:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  type: 'Error'
}
Error occurred while trying to run the npx next build 
Error: Command failed: npx next build 
    at checkExecSyncError (node:child_process:890:11)
    at execSync (node:child_process:962:15)
    at /home/myan/Workspaces/web/twn-react-web/node_modules/@nx/next/src/executors/build/build.impl.js:46:42
    at Generator.next (<anonymous>)
    at /home/myan/Workspaces/web/twn-react-web/node_modules/tslib/tslib.js:169:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/home/myan/Workspaces/web/twn-react-web/node_modules/tslib/tslib.js:165:16)
    at buildExecutor (/home/myan/Workspaces/web/twn-react-web/node_modules/@nx/next/src/executors/build/build.impl.js:20:20)
    at /home/myan/Workspaces/web/twn-react-web/node_modules/nx/src/command-line/run/run.js:113:23

 —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Ran target build for project weather-app and 1 task(s) they depend on (2m)

    ✖    1/2 failed
    ✔    1/2 succeeded [0 read from cache]

I only got above error after adding `nodeProfilingIntegration` 
![image](https://github.com/getsentry/sentry-javascript/assets/119077203/8e8c9132-1d46-4630-a408-cfd62d84baa6)
myan-pelmorex commented 7 months ago

Here is the build logs after I commented out the nodeProfilingIntegration

npx nx build weather-app

nx run weather-app:git-info

apps/weather-app/src
sentry
1.3.0
4335c9795
2.0.80

nx run weather-app:build:production [local cache]

- info Creating an optimized production build...
warn  - It seems like you don't have a global error handler set up. It is recommended that you add a global-error.js file with Sentry instrumentation so that React rendering errors are reported to Sentry. Read more: https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#react-render-errors-in-app-router

warn  - In order to be able to deminify errors, @sentry/nextjs creates sourcemaps and uploads them to the Sentry server. Depending on your deployment setup, this means your original code may be visible in browser devtools in production. To prevent this, set hideSourceMaps to true in the sentry options in your next.config.js. To disable this warning without changing sourcemap behavior, set hideSourceMaps to false. (In @sentry/nextjs version 8.0.0 and beyond, this option will default to true.) See https://webpack.js.org/configuration/devtool/ and https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#use-hidden-source-map for more information.

- warn Compiled with warnings

../../node_modules/@sentry/profiling-node/lib/index.js
Critical dependency: the request of a dependency is an expression

Import trace for requested module:
../../node_modules/@sentry/profiling-node/lib/index.js
./sentry.server.config.js
./src/app/healthcheck/weather/route.ts

../../libs/shared/ads/src/index.ts
The requested module './lib/provider/AdsContext' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/provider/'

Import trace for requested module:
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx

../../libs/shared/ads/src/index.ts
The requested module './lib/components' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/provider/'

Import trace for requested module:
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx

../../libs/shared/ads/src/index.ts
The requested module './lib/hooks' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/provider/'

Import trace for requested module:
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx

../../libs/shared/ads/src/index.ts
The requested module './lib/ad-params-context' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/provider/'

Import trace for requested module:
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx

../../libs/shared/ads/src/index.ts
The requested module './lib/components/sponsor-ad' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/provider/'

Import trace for requested module:
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx

../../libs/shared/ads/src/lib/components/index.ts
The requested module './tapad-pixel' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './advertising-slot'

Import trace for requested module:
../../libs/shared/ads/src/lib/components/index.ts
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx

../../libs/shared/ads/src/lib/components/index.ts
The requested module './styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './advertising-slot'

Import trace for requested module:
../../libs/shared/ads/src/lib/components/index.ts
../../libs/shared/ads/src/index.ts
./src/app/not-found.tsx

../../libs/shared/analytics/src/index.ts
The requested module './lib/components' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/hooks'

Import trace for requested module:
../../libs/shared/analytics/src/index.ts
./src/app/[lang]/[profileType]/page.tsx

../../libs/shared/analytics/src/lib/components/index.tsx
The requested module './ViewTracker' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './ClickTracker'

Import trace for requested module:
../../libs/shared/analytics/src/lib/components/index.tsx
../../libs/shared/analytics/src/index.ts
./src/app/[lang]/[profileType]/page.tsx

../../libs/shared/analytics/src/lib/components/index.tsx
The requested module './ComScoreDirect' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './ClickTracker'

Import trace for requested module:
../../libs/shared/analytics/src/lib/components/index.tsx
../../libs/shared/analytics/src/index.ts
./src/app/[lang]/[profileType]/page.tsx

../../libs/shared/components/src/index.ts
The requested module './lib/content-feed' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/MessagePopUp'

Import trace for requested module:
../../libs/shared/components/src/index.ts
./src/app/[lang]/layout.tsx

../../libs/shared/components/src/lib/content-feed/index.tsx
The requested module './content-feed-client-container' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './content-feed-client'

Import trace for requested module:
../../libs/shared/components/src/lib/content-feed/index.tsx
../../libs/shared/components/src/index.ts
./src/app/[lang]/layout.tsx

../../libs/shared/consent-management/src/index.ts
The requested module './CookieBar' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './ConsentManagementProvider'

Import trace for requested module:
../../libs/shared/consent-management/src/index.ts
./src/app/not-found.tsx

../../libs/shared/taboola/src/index.ts
The requested module './widget' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './provider'

Import trace for requested module:
../../libs/shared/taboola/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/Common' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/ResponsiveBar/variations/SecondaryNavigationBar' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/SecondaryNavigation' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/SiteChrome/UnifiedNavigation/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/Slider' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/Slider/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/Layout/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/ContentfulImage' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/LazyLoad' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/ModuleTitle/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/AnimatedCarousel' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/AnimatedCarousel/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/AssistantCallout' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/no-scrollbar-slider/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/index.ts
The requested module './lib/padded-slider/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/Breadcrumbs/variations/BreadcrumbsWrapper/styled'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/lib/Common/index.tsx
The requested module './CloseButton/index.styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './tile'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/lib/Common/index.tsx
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/shared/twnmm/ui/src/lib/Common/index.tsx
The requested module './Fragments/index.styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './tile'

Import trace for requested module:
../../libs/shared/twnmm/ui/src/lib/Common/index.tsx
../../libs/shared/twnmm/ui/src/index.ts
./src/app/not-found.tsx

../../libs/site-chrome/src/SiteChrome/index.ts
The requested module './TopBannerSlot' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './SiteChrome'

Import trace for requested module:
../../libs/site-chrome/src/SiteChrome/index.ts
../../libs/site-chrome/src/index.ts
./src/app/not-found.tsx

../../libs/video/components/src/index.ts
The requested module './lib/CurrentWeatherVideoPlayer' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/JWPlayer/jw-player'

Import trace for requested module:
../../libs/video/components/src/index.ts
./src/app/[lang]/[profileType]/[country]/[province]/[city]/current/page.tsx
./src/app/[lang]/[profileType]/[country]/[province]/[city]/actuelle/page.tsx

../../libs/weather/components/src/index.ts
The requested module './lib/popular-locations' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'

Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx

../../libs/weather/components/src/index.ts
The requested module './lib/nearby-locations' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'

Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx

../../libs/weather/components/src/index.ts
The requested module './lib/detailed-obs/slider/slider-client' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'

Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx

../../libs/weather/components/src/index.ts
The requested module './lib/forecasts-widgets/hourly-forecast-widget-client' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'

Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx

../../libs/weather/components/src/index.ts
The requested module './lib/forecasts-widgets//seven-days-forecast-widget-client' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'

Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx

../../libs/weather/components/src/index.ts
The requested module './lib/forecasts-widgets//fourteen-days-forecast-widget-client' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'

Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx

../../libs/weather/components/src/index.ts
The requested module './lib/ReportsModuleServer/reports-module-client' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/map-fuse-image'

Import trace for requested module:
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx

../../libs/weather/ui/src/index.ts
The requested module './lib/map-fuse-image/styled' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/detailed-obs/Slider/styled'

Import trace for requested module:
../../libs/weather/ui/src/index.ts
../../libs/weather/components/src/lib/StormCentreCallout/index.tsx
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx

../../libs/weather/ui/src/index.ts
The requested module './lib/forecasts-module' contains conflicting star exports for the names '$$typeof', '__esModule' with the previous requested module './lib/detailed-obs/Slider/styled'

Import trace for requested module:
../../libs/weather/ui/src/index.ts
../../libs/weather/components/src/lib/StormCentreCallout/index.tsx
../../libs/weather/components/src/index.ts
./src/app/[lang]/[profileType]/page.tsx

- info Skipping linting
- info Checking validity of types...
- info Collecting page data...
- info Generating static pages (0/5)
- info Generating static pages (1/5)
- warn Entire page /404 deopted into client-side rendering. https://nextjs.org/docs/messages/deopted-into-client-rendering /404
- info Generating static pages (2/5)
- info Generating static pages (3/5)
- info Generating static pages (5/5)
- info Finalizing page optimization...

Route (app)                                                     Size     First Load JS
┌ λ /                                                           146 B           183 kB
├ ○ /_not-found                                                 0 B                0 B
├ λ /[lang]/[profileType]                                       1.65 kB         745 kB
├ λ /[lang]/[profileType]/[country]/[province]/[city]/14-days   0 B                0 B
├ λ /[lang]/[profileType]/[country]/[province]/[city]/14-jours  0 B                0 B
├ λ /[lang]/[profileType]/[country]/[province]/[city]/7-days    0 B                0 B
├ λ /[lang]/[profileType]/[country]/[province]/[city]/7-jours   0 B                0 B
├ λ /[lang]/[profileType]/[country]/[province]/[city]/actuelle  155 B           749 kB
├ λ /[lang]/[profileType]/[country]/[province]/[city]/current   155 B           749 kB
├ λ /[lang]/[profileType]/[country]/[province]/[city]/horaire   0 B                0 B
├ λ /[lang]/[profileType]/[country]/[province]/[city]/hourly    0 B                0 B
└ ○ /healthcheck/weather                                        0 B                0 B
+ First Load JS shared by all                                   183 kB
  ├ chunks/47870809-ccfe2afc38743cbf.js                         37.1 kB
  ├ chunks/723-6f13f41fe0fc8bae.js                              92.6 kB
  ├ chunks/7fd0f9f1-55985df988815f65.js                         50.7 kB
  ├ chunks/main-app-aa23a3ef46350698.js                         574 B
  └ chunks/webpack-6ffa7d0aa76b4ffd.js                          2.05 kB

Route (pages)                                                   Size     First Load JS
─ ○ /404                                                        222 B           170 kB
+ First Load JS shared by all                                   170 kB
  ├ chunks/main-9bde71216beaff76.js                             88.5 kB
  ├ chunks/pages/_app-4fa838970845def8.js                       79.1 kB
  └ chunks/webpack-6ffa7d0aa76b4ffd.js                          2.05 kB

ƒ Middleware                                                    145 kB

λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
○  (Static)  automatically rendered as static HTML (uses no initial props)

 —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Successfully ran target build for project weather-app and 1 task it depends on (1s)

   Nx read the output from the cache instead of running the command for 1 out of 2 tasks.

![image](https://github.com/getsentry/sentry-javascript/assets/119077203/bb032df1-1739-413e-9d30-3d5517fa8c87)
JonasBa commented 7 months ago

Hmm, @myan-pelmorex, it seems like the .node file is not present on the server...

Do you mind if I ask you to try installing the version 1.3.5 and seeing if it errors with the same error?

Alternatively, if you build the project locally, can you verify that the .node bindings are moved to the build dir? If that does not work, I would ask you to mark the package as external, so that it will be removed from the build and installed on the remote - you can reference the docs on how to do that here

myan-pelmorex commented 7 months ago

Hi @JonasBa, Which library should I reinstall to version 1.3.5?? Currently there are two sentry related libraries in our pakcage.json:

    "@sentry/nextjs": "^7.106.1",
    "@sentry/profiling-node": "^7.106.1",

I also verified the local build directory yes I do see the .node file b5d0ca73e7626ca90fc4dc3c3dbb6c71.node, however it under the different directory, see below screenshot, it was under the /dist/apps/weather-app/.next/server/chunks folder, somehow the build tried to load this .node file from //dist/apps/weather-app/.next/server/chunks//weather-app-assets/_next folder, haven't figured out the cause yet

image

JonasBa commented 7 months ago

@myan-pelmorex hmm, you can skip the downgrade of the library, it seems like the bundler works correctly here. How are you running the bundled entry? Are you specifying any path aliases that might interfere here?

I would suggest marking @sentry/profiling-node as external in whatever bundler this is using, that way it wont get bundled with your application code and paths will point to the node modules folder. Can you try doing that and let me know if it works?

myan-pelmorex commented 7 months ago

Hi @JonasBa Okay it works after marking the @sentry/profiling-node as external. I now see data in profiling tab...Thanks again for your help!

JonasBa commented 7 months ago

@myan-pelmorex no problem, and sorry about it breaking your build in the first place. I'm glad we were able to get it resolved, let us know if you see any other issues going forward!