Skip to content

Build shows warnings about "Annotation that Rollup cannot interpret due to the position of the comment" #2869

@Jaime02

Description

@Jaime02

Issue workflow progress

Progress of the issue based on the
Contributor Workflow

  • 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox

    Make sure to fork this template and run yarn generate in the terminal.

    Please make sure the GraphQL Scalars package version under package.json matches yours.

  • 2. A failing test has been provided
  • 3. A local solution has been provided
  • 4. A pull request is pending review

Describe the bug

Running npm run build, vite build causes that many warnings about "an annotation that Rollup cannot interpret" are shown

To Reproduce Steps to reproduce the behavior:

Run npm run build, vite build

Expected behavior

Environment:

  • OS: Windows 11.
  • GraphQL Scalars Version: 1.24.2
  • NodeJS: v22.16.0

Additional context

Warnings: (I see more, here there is a sample)

[WebServer] node_modules/graphql-scalars/esm/scalars/iso-date/Date.js (13:33): A comment
[WebServer] 
[WebServer] "/*#__PURE__*/"
[WebServer] 
[WebServer] in "node_modules/graphql-scalars/esm/scalars/iso-date/Date.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
[WebServer] node_modules/graphql-scalars/esm/scalars/json/JSONObject.js (4:39): A comment
[WebServer] 
[WebServer] "/*#__PURE__*/"
[WebServer] 
[WebServer] in "node_modules/graphql-scalars/esm/scalars/json/JSONObject.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
[WebServer] node_modules/graphql-scalars/esm/scalars/json/JSON.js (5:33): A comment
[WebServer] 
[WebServer] "/*#__PURE__*/"
[WebServer] 
[WebServer] in "node_modules/graphql-scalars/esm/scalars/json/JSON.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions