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

Getting an error with lodash import after latest commit #41

Closed
ignacio-kognitos opened this issue Dec 10, 2024 · 3 comments
Closed

Getting an error with lodash import after latest commit #41

ignacio-kognitos opened this issue Dec 10, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@ignacio-kognitos
Copy link

After latest changes I have failing pipelines because of an unresolved import.

This seems to be the conflicting change c0d4031#diff-f4ab32fb5c8616320ebab8137b8ae26da659a4cfc2201832680090056d2c8e9cR3

[3:38:07 PM] [semantic-release] › ℹ  Running semantic-release version 24.2.0
[3:38:07 PM] [semantic-release] › ✘  An error occurred while running semantic-release: file:///home/runner/work/_actions/cycjimmy/semantic-release-action/v4/node_modules/semantic-release-pypi/dist/prepare.js:11
import { template } from 'lodash';
         ^^^^^^^^
SyntaxError: Named export 'template' not found. The requested module 'lodash' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'lodash';
const { template } = pkg;

    at ModuleJob._instantiate (node:internal/modules/esm/module_job:146:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:229:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
    at async loadPlugin (file:///home/runner/work/_actions/cycjimmy/semantic-release-action/v4/node_modules/semantic-release/lib/plugins/utils.js:60:54)
    at async file:///home/runner/work/_actions/cycjimmy/semantic-release-action/v4/node_modules/semantic-release/lib/plugins/index.js:18:37
    at async default (file:///home/runner/work/_actions/cycjimmy/semantic-release-action/v4/node_modules/semantic-release/lib/plugins/index.js:14:7)
    at async default (file:///home/runner/work/_actions/cycjimmy/semantic-release-action/v4/node_modules/semantic-release/lib/get-config.js:92:30)
    at async Module.default (file:///home/runner/work/_actions/cycjimmy/semantic-release-action/v4/node_modules/semantic-release/index.js:274:34)
    at async release (/home/runner/work/_actions/cycjimmy/semantic-release-action/v4/src/index.js:31:18)
@abichinger abichinger added the bug Something isn't working label Dec 10, 2024
abichinger added a commit that referenced this issue Dec 10, 2024
@abichinger
Copy link
Owner

Thanks! 👍

github-actions bot pushed a commit that referenced this issue Dec 10, 2024
## [4.1.1](v4.1.0...v4.1.1) (2024-12-10)

### Bug Fixes

* lodash import [#41](#41) ([84b663c](84b663c))
@abichinger
Copy link
Owner

Should be fixed

@ignacio-kognitos
Copy link
Author

Should be fixed

It works now, thank you for the quick turnaround! @abichinger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants