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

Component ContextMenu: stackblitz error on Command example #7190

Closed
FrancescoScandiffio opened this issue Sep 15, 2024 · 0 comments
Closed
Assignees
Labels
Component: Documentation Issue or pull request is related to Documentation
Milestone

Comments

@FrancescoScandiffio
Copy link
Contributor

Describe the bug

The apps hosted on stackblitz to showcase the Command example of the ContextMenu component cannot render due to an import error.
At lines 103 and 199 the import should be primereact instead of primerea

javascript: `
import { ContextMenu } from 'primereact/contextmenu';
import { useState, useRef } from 'react';
import { Toast } from 'primereact/toast';
import { Tag } from 'primerea/tag';

typescript: `
import { ContextMenu } from 'primereact/contextmenu';
import { useState, useRef } from 'react';
import { Toast } from 'primereact/toast';
import { Tag } from 'primerea/tag';

Reproducer

stackblitz of https://primereact.org/contextmenu/#command

System Information

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    primereact: latest => 10.8.2 
    react: 18.3.1 => 18.3.1

Steps to reproduce the behavior

No response

Expected behavior

No response

@FrancescoScandiffio FrancescoScandiffio added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 15, 2024
@melloware melloware added Component: Documentation Issue or pull request is related to Documentation and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 15, 2024
@melloware melloware added this to the 10.8.3 milestone Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Issue or pull request is related to Documentation
Projects
None yet
Development

No branches or pull requests

2 participants