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

Failed to import - primereact (alias cannot contain slashes) #792

Open
kyjus25 opened this issue Jan 23, 2024 · 2 comments
Open

Failed to import - primereact (alias cannot contain slashes) #792

kyjus25 opened this issue Jan 23, 2024 · 2 comments
Labels
browser Not working in Browser

Comments

@kyjus25
Copy link

kyjus25 commented Jan 23, 2024

Attempting to use PrimeReact in a Fresh Deno project which uses preact/compat

Failing module

"imports": {
  ...
  "primereact/": "https://esm.sh/primereact@10.3.3&alias=react:preact/compat,react-dom:preact/compat&external=preact/"
}
import { Button } from "primereact/button"

Error message

After onload I got this:

Module not found

Import path works if I change preact/compat to not have a slash, but this is of course not the proper alias

https://preactjs.com/guide/v10/getting-started#aliasing-react-to-preact

Additional info

  • Browser version: Brave v1.61.104 (Chromium)

Full disclosure I also may be doing this completely wrong.

@kyjus25 kyjus25 added the browser Not working in Browser label Jan 23, 2024
@ije
Copy link
Member

ije commented Jan 23, 2024

supposed to work, seems it's a bug of the recent update, i will look into it

@kyjus25
Copy link
Author

kyjus25 commented Jan 23, 2024

@ije Thank you for quick reply 🙏 Appreciate any assistance

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

No branches or pull requests

2 participants