Skip to content

eventcatalog build - rollup failed to resolve import #1738

@mitch-olh

Description

@mitch-olh

I tried this:

npm run build

This happened:

15:48:00 [ERROR] [vite] ✗ Build failed in 5.18s

I expected this:

No response

Is there a workaround?

No response

Anything else?

[vite:worker-import-meta-url] [vite]: Rollup failed to resolve import "@langchain/community/embeddings/huggingface_transformers" from "/Users/foo/enterprise-event-catalog/.eventcatalog-core/src/enterprise/eventcatalog-chat/components/workers/document-importer.ts".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
file: /Users/foo/enterprise-event-catalog/.eventcatalog-core/src/enterprise/eventcatalog-chat/components/windows/ChatWindow.client.tsx
  Hint:
    Browser APIs are not available on the server.
    
    If the code is in a framework component, try to access these objects after rendering using lifecycle methods or use a `client:only` directive to make the component exclusively run on the client.
    
    See https://docs.astro.build/en/guides/troubleshooting/#document-or-window-is-not-defined for more information.

EventCatalog Version

@eventcatalog/core@2.58.1

Node.js Version

22.19.0

Platform(s)

MacOS

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions