You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the build process with Rollup, the following warning occurs:
@channel.io/bezier-react:build: (!) ../../node_modules/@radix-ui/react-toggle/dist/index.mjs (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
@channel.io/bezier-react:build: /Users/edchoi/Desktop/Channel/bezier-react/node_modules/@radix-ui/react-toggle/dist/index.mjs:1:0
Upon investigation, the 'use client' directive in the first line is missing from the 'sourcesContent' in the sourcemap file of index.mjs. While the sourcemap mapping works correctly, the build warning persists.
index.js
index.js.map
index.mjs
index.mjs.map (No 'use client')
Expected behavior
The build process should complete without warnings.
Reproducible example
None
Suggested solution
Include the 'use client' directive in the 'sourcesContent' of the sourcemap file
Bug report
Current Behavior
During the build process with Rollup, the following warning occurs:
Upon investigation, the 'use client' directive in the first line is missing from the 'sourcesContent' in the sourcemap file of index.mjs. While the sourcemap mapping works correctly, the build warning persists.
Expected behavior
The build process should complete without warnings.
Reproducible example
None
Suggested solution
Include the 'use client' directive in the 'sourcesContent' of the sourcemap file
Additional context
node_modules
eliminates the build warning.Your environment
The text was updated successfully, but these errors were encountered: