-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Needs TestingNeeds further testing to be confirmed.Needs further testing to be confirmed.[Package] Core data/packages/core-data/packages/core-data[Status] Needs More InfoFollow-up required in order to be actionable.Follow-up required in order to be actionable.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
Package @wordpress/core-data isn't working. It returns undefined when I try to import it in a TypeScript project.
Here's ny TSConfig
{
"compilerOptions": {
"jsx": "react-jsx",
"module": "ESNext",
"target": "ES2016",
"strict": true,
"allowSyntheticDefaultImports": true,
"moduleResolution": "node"
}
}Step-by-step reproduction instructions
- Install
@wordpress/core-data - Add following code
import { store } from '@wordpress/core-data';
console.log('store', store);- You should get an error.
Screenshots, screen recording, code snippet
Code:
Result:
Environment info
- Wordpress Version: 6.5.5
- I am building a custom theme (Clone of 2024)
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs TestingNeeds further testing to be confirmed.Needs further testing to be confirmed.[Package] Core data/packages/core-data/packages/core-data[Status] Needs More InfoFollow-up required in order to be actionable.Follow-up required in order to be actionable.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.