Skip to content

Upgrade chatbot from 6.4.1 to 6.5.0 require monaco-editor #797

Description

@aljesusg

This is the error in yarn

failed to compile
Module not found: Error: Can't resolve 'monaco-editor' in '/home/agutierr/Projects/kiali/kiali/frontend/node_modules/@patternfly/chatbot/dist/esm/CodeModal'
ERROR in ./node_modules/@patternfly/chatbot/dist/esm/CodeModal/CodeModal.js 51:28-51
Module not found: Error: Can't resolve 'monaco-editor' in '/home/agutierr/Projects/kiali/kiali/frontend/node_modules/@patternfly/chatbot/dist/esm/CodeModal'

After install "monaco-editor": "^0.52.0",
Running the frontend dev server, webpack emits warnings originating from monaco-editor pulled in by @patternfly/chatbot.

Warning
(46:2) autoprefixer: end value has mixed support, consider using flex-end instead

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

WARNING in ./node_modules/monaco-editor/esm/vs/base/common/marked/marked.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/home/agutierr/Projects/kiali/kiali/frontend/node_modules/monaco-editor/esm/vs/base/common/marked/marked.umd.js.map' file: Error: ENOENT: no such file or directory, open '/home/agutierr/Projects/kiali/kiali/frontend/node_modules/monaco-editor/esm/vs/base/common/marked/marked.umd.js.map'

WARNING in ./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hover.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hover.css)
Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning

(46:2) autoprefixer: end value has mixed support, consider using flex-end instead

webpack compiled with 2 warnings

Expected

Installed monaco-editor and no warnings from node_modules on startup (or at least no missing source map warnings).

Environment

OS: Fedora Linux 42 (kernel 6.18.5)
Node: 20.19.1
Yarn: 1.22.22
Product affected: Kiali
PR with the feature => kiali/kiali#9006


Jira Issue: PF-3439

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions