You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I have been having issues adding extra wordpress components into my block. First found with <Panel> component (i think) more recently with any of the Icon components. I will attach a slightly shortened version of the code below as many blocks are ok within the file.
Not sure if this is related - but I have also found that some components installed by the npx command aren't re-installed if you npm install again in the plugin folder... none of the format or lint npm commands work again - without adding the line - above in package.json. ("prettier": "npm:wp-prettier@^1.18.2") It seems like the package.json / lock isn't actually an accurate version of what's used.
I have to re-install when switching between branches as I need to delete the node_modules folder to avoid Visual Studio analysing 100,000 files for changes - my work laptop nearly crashes otherwise.
Recently I have been having issues adding extra wordpress components into my block. First found with
<Panel>
component (i think) more recently with any of the Icon components. I will attach a slightly shortened version of the code below as many blocks are ok within the file.In start mode watching - all works fine - no errors reported - once the block is built for production there is:
Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
Translating to
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
Find code below - commented out lines show solutions tried - all with same issue.
index.js
package.json
edit.js
I've spent nearly 2 days trying to put 1 stupid dashicon into a block - there must be something I'm missing - or a bug with it??
The text was updated successfully, but these errors were encountered: