primefaces / primefaces/primereact

Documentation for prime react cdn

Open
#6,711 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: Documentation good first issue
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Prime react cdn for latest not available. After implementing usestyle hook error comes. Error not coming if "https://unpkg.com/primereact/primereact.all.min.js" is used instead of "core.js". Works fine if i change version 8 but creates error if version greater then 10
Screenshot from 2024-05-31 09-52-20
Screenshot from 2024-05-31 09-53-32

Reproducer

No response

PrimeReact version

CDN

React version

17.x

Language

ALL

Build / Runtime

Create React App (CRA)

Browser(s)

any browser

Steps to reproduce the behavior

On any index.html copy code from https://www.primefaces.org/primereact-v8/setup/ and run in browser.

Expected behavior

No error sholud come in console if core cdn is used. Either fix it or update the cdn

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the PrimeReact v8 setup page and the index.html example referenced in the issue, comparing the core.js CDN entry with primereact.all.min.js. Reproduce the useStyle error with the reported CDN versions and confirm that the documented CDN example works without a console error; update the CDN guidance or document the required fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.