Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Failing to import @wordpress/dom-ready #282

Open
clovis1122 opened this issue Jun 25, 2020 · 1 comment
Open

Failing to import @wordpress/dom-ready #282

clovis1122 opened this issue Jun 25, 2020 · 1 comment

Comments

@clovis1122
Copy link

Bug Report

Expected Behavior

I'm trying to use the import ... from @wordpress/... syntax. Writing import domReady from @wordpress/dom-ready should build successfully, and it should refer to wp.domReady.

Actual Behavior

I receive the "module not found" error.
image.

I think this is very easy to fix by adding "dom-ready" here:

. Let me know if this is correct.

@clovis1122
Copy link
Author

clovis1122 commented Jun 25, 2020

I think @wordpress/compose also presents the same issue. @ahmadawais would it be possible to make it so that when something is imported from @wordpress/whatever, it is accessed as wp[camelCaseDash(whatever)]?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant