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
Add the following import to the editor.js file of any block found in client/gutenberg/extensions: import { loadScript } from 'lib/load-script';
Build the block using the SDK, e.g.: npm run sdk gutenberg client/gutenberg/extensions/presets/jetpack -- --output-dir=PATH_TO_JETPACK_REPO/_inc/blocks
The SDK should build successfully with no errors.
Add the block to a post in a browser. You should see the following error in the Javascript console:
Steps to reproduce
editor.js
file of any block found inclient/gutenberg/extensions
:import { loadScript } from 'lib/load-script';
npm run sdk gutenberg client/gutenberg/extensions/presets/jetpack -- --output-dir=PATH_TO_JETPACK_REPO/_inc/blocks
https://d.pr/free/i/C00g4r
What I expected
Library would be successfully imported and useable within the block.
Browser / OS version
Chrome Version 69.0.3497.100 (Official Build) (64-bit) / macOS High Sierra 10.13.6
The text was updated successfully, but these errors were encountered: