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

Fix import of lodash/chunk #24

Merged
merged 1 commit into from
Nov 26, 2023
Merged

Conversation

ronitagarwala01
Copy link
Contributor

Change to import chunk from lodash/chunk.js. ES Module system requires file extension when importing a specific file from a package.

@lpsinger
Copy link
Member

What error message did you get?

@lpsinger lpsinger merged commit 74cb66c into nasa-gcn:main Nov 26, 2023
7 checks passed
@ronitagarwala01
Copy link
Contributor Author

This is what I got before:

Error: Plugin error:

  • Unable to load plugin 'architect-plugin-search': Cannot find module 'C:\Users\ronit\NASA\architect-plugin-search\node_modules\lodash\chunk' imported from C:\Users\ronit\NASA\architect-plugin-search\index.js
    Did you mean to import lodash/chunk.js?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants