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

logseq-emoji-picker doesn't build: @parcel/core: Failed to resolve '@joeattardi/emoji-button' from './index.ts' #29

Open
Dieterbe opened this issue Oct 10, 2022 · 2 comments

Comments

@Dieterbe
Copy link

npm install && npm run build
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility

added 181 packages, and audited 182 packages in 3s

72 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

> [email protected] build
> parcel build --public-url . --no-source-maps index.html

🚨 Build failed.

@parcel/core: Failed to resolve '@joeattardi/emoji-button' from './index.ts'

  /home/dieter/code/logseq-plugin-samples/logseq-emoji-picker/index.ts:2:29
    1 | import '@logseq/libs'
  > 2 | import { EmojiButton } from '@joeattardi/emoji-button'
  >   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    3 | 
    4 | /**

@amrtawfik160
Copy link

The problem is that the @joeattardi/emoji-button package is not installed. You can install it with:

npm install @joeattardi/emoji-button

@Dieterbe
Copy link
Author

Note that the readme says:

npm install && npm run build in terminal to install dependencies

The command you mentioned does indeed make npm run build work, thus it seems that the standard instructions are not enough to properly install all dependencies.
thanks!

PS: https://www.npmjs.com/package/@joeattardi/emoji-button says that the package is deprecated in favor of "picmo"

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

No branches or pull requests

2 participants