Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[decap-cms-app] Module not found: Can't resolve 'decap-cms-lib-util/src/stega' #7401

Open
eoneill opened this issue Feb 12, 2025 · 0 comments · May be fixed by #7405
Open

[decap-cms-app] Module not found: Can't resolve 'decap-cms-lib-util/src/stega' #7401

eoneill opened this issue Feb 12, 2025 · 0 comments · May be fixed by #7405
Labels
type: bug code to address defects in shipped code

Comments

@eoneill
Copy link

eoneill commented Feb 12, 2025

Describe the bug

I'm using decap-cms-app directly (via import cms from 'decap-cms-app'). When rendering the preview pane, I get an import resolution error:

./node_modules/decap-cms-app/node_modules/decap-cms-core/dist/esm/components/Editor/EditorPreviewPane/EditorPreviewPane.js:14:1
Module not found: Can't resolve 'decap-cms-lib-util/src/stega'
  12 | import { lengths } from 'decap-cms-ui-default';
  13 | import { connect } from 'react-redux';
> 14 | import { encodeEntry } from 'decap-cms-lib-util/src/stega';
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This started happening when I bumped decap-cms-app to 3.6.1 and not present in 3.5.0.

import { encodeEntry } from 'decap-cms-lib-util/src/stega';

should probably import from dist/esm/, not from src/

import { encodeEntry } from 'decap-cms-lib-util/dist/esm/stega';

Applicable Versions:

  • decap-cms-app: 3.6.1
  • decap-cms-core: 3.6.0
  • decap-cms-lib-util: 3.2.0

I have this working locally with this patch-package patch:
decap-cms-app++decap-cms-core+3.6.0.patch

@eoneill eoneill added the type: bug code to address defects in shipped code label Feb 12, 2025
@fgnass fgnass linked a pull request Feb 13, 2025 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant