JavaScript for WordPress Forums Bugs & Issues Module parse failed: Unexpected token (99:4) You may need an appropriate loader

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #153910
    Steven Doig
    Participant

    When I run npm run dev or npm run build I receive a terminal error:

    Module parse failed: Unexpected token (99:4)
    You may need an appropriate loader to handle this file type.
    
    

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/block-alignment-control/ui.js
    Module parse failed: Unexpected token (53:15)
    You may need an appropriate loader to handle this file type.
    | name: controlName
    | } = _ref2;
    | return { …BLOCK_ALIGNMENTS_CONTROLS[controlName],
    | isActive: value === controlName || !value && controlName === ‘none’,
    | role: isCollapsed ? ‘menuitemradio’ : undefined,
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-alignment-control/index.js 7:0-36
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/inserter/block-types-tab.js
    Module parse failed: Unexpected token (53:21)
    You may need an appropriate loader to handle this file type.
    | const itemsPerCollection = useMemo(() => {
    | // Create a new Object to avoid mutating collection.
    | const result = { …collections
    | };
    | Object.keys(collections).forEach(namespace => {
    @ ./node_modules/@wordpress/block-editor/build-module/components/inserter/menu.js 21:0-46
    @ ./node_modules/@wordpress/block-editor/build-module/components/inserter/library.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/drop-zone/index.js
    Module parse failed: Unexpected token (53:4)
    You may need an appropriate loader to handle this file type.
    | onHTMLDrop,
    | onDrop,
    | …restProps
    | } = _ref;
    | const [isDraggingOverDocument, setIsDraggingOverDocument] = useState();
    @ ./node_modules/@wordpress/components/build-module/index.js 33:0-50
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/blocks/build-module/store/reducer.js
    Module parse failed: Unexpected token (53:51)
    You may need an appropriate loader to handle this file type.
    |
    | function keyBlockTypesByName(types) {
    | return types.reduce((newBlockTypes, block) => ({ …newBlockTypes,
    | [block.name]: block
    | }), {});
    @ ./node_modules/@wordpress/blocks/build-module/store/index.js 9:0-32
    @ ./node_modules/@wordpress/blocks/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel/hook.js
    Module parse failed: Unexpected token (54:4)
    You may need an appropriate loader to handle this file type.
    | __experimentalFirstVisibleItemClass,
    | __experimentalLastVisibleItemClass,
    | …otherProps
    | } = useContextSystem(props, ‘ToolsPanel’);
    | const isResetting = useRef(false);
    @ ./node_modules/@wordpress/components/build-module/tools-panel/tools-panel/index.js 2:0-39
    @ ./node_modules/@wordpress/components/build-module/tools-panel/index.js
    @ ./node_modules/@wordpress/components/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/radio-control/index.js
    Module parse failed: Unexpected token (54:4)
    You may need an appropriate loader to handle this file type.
    | hideLabelFromVision,
    | options = [],
    | …additionalProps
    | } = props;
    | const instanceId = useInstanceId(RadioControl);
    @ ./node_modules/@wordpress/components/build-module/index.js 86:0-58
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/utils/hooks/use-controlled-state.js
    Module parse failed: Unexpected token (57:8)
    You may need an appropriate loader to handle this file type.
    | initial,
    | fallback
    | } = { …defaultOptions,
    | …options
    | };
    @ ./node_modules/@wordpress/components/build-module/utils/hooks/index.js 1:0-71
    @ ./node_modules/@wordpress/components/build-module/combobox-control/index.js
    @ ./node_modules/@wordpress/components/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/tree-grid/index.js
    Module parse failed: Unexpected token (58:4)
    You may need an appropriate loader to handle this file type.
    | onFocusRow = () => {},
    | applicationAriaLabel,
    | …props
    | } = _ref;
    | const onKeyDown = useCallback(event => {
    @ ./node_modules/@wordpress/components/build-module/index.js 115:0-194
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/color-picker/use-deprecated-props.js
    Module parse failed: Unexpected token (59:11)
    You may need an appropriate loader to handle this file type.
    | }
    |
    | return { …props,
    | color: props.color,
    | enableAlpha: props.enableAlpha,
    @ ./node_modules/@wordpress/components/build-module/color-picker/legacy-adapter.js 7:0-60
    @ ./node_modules/@wordpress/components/build-module/color-picker/index.js
    @ ./node_modules/@wordpress/components/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/resizable-box/index.js
    Module parse failed: Unexpected token (59:4)
    You may need an appropriate loader to handle this file type.
    | __experimentalShowTooltip: showTooltip = false,
    | __experimentalTooltipProps: tooltipProps = {},
    | …props
    | } = _ref;
    | return createElement(Resizable, _extends({
    @ ./node_modules/@wordpress/components/build-module/index.js 88:0-58
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/popover/index.js
    Module parse failed: Unexpected token (59:4)
    You may need an appropriate loader to handle this file type.
    | placement,
    | shouldAnimate = false,
    | …props
    | } = _ref;
    | // When animating, animate only once (i.e. when the popover is opened), and
    @ ./node_modules/@wordpress/components/build-module/index.js 82:0-47
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/spacing-sizes-control/index.js
    Module parse failed: Unexpected token (60:24)
    You may need an appropriate loader to handle this file type.
    |
    | const handleOnChange = nextValue => {
    | const newValues = { …values,
    | …nextValue
    | };
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js 69:0-87
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/autocomplete/index.js
    Module parse failed: Unexpected token (60:32)
    You may need an appropriate loader to handle this file type.
    |
    | export function useBlockEditorAutocompleteProps(props) {
    | return useAutocompleteProps({ …props,
    | completers: useCompleters(props)
    | });
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js 9:0-57
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/blocks/build-module/api/templates.js
    Module parse failed: Unexpected token (61:15)
    You may need an appropriate loader to handle this file type.
    | if (block && block.name === name) {
    | const innerBlocks = synchronizeBlocksWithTemplate(block.innerBlocks, innerBlocksTemplate);
    | return { …block,
    | innerBlocks
    | };
    @ ./node_modules/@wordpress/blocks/build-module/api/index.js 88:0-83
    @ ./node_modules/@wordpress/blocks/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/block-vertical-alignment-control/ui.js
    Module parse failed: Unexpected token (61:15)
    You may need an appropriate loader to handle this file type.
    | label: _x(‘Change vertical alignment’, ‘Block vertical alignment setting label’),
    | controls: controls.map(control => {
    | return { …BLOCK_ALIGNMENTS_CONTROLS[control],
    | isActive: value === control,
    | role: isCollapsed ? ‘menuitemradio’ : undefined,
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-vertical-alignment-control/index.js 7:0-44
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/border-box-control/border-box-control/component.js
    Module parse failed: Unexpected token (61:4)
    You may need an appropriate loader to handle this file type.
    | __experimentalIsRenderedInSidebar,
    | __next36pxDefaultSize = false,
    | …otherProps
    | } = useBorderBoxControl(props); // Use internal state instead of a ref to make sure that the component
    | // re-renders when the popover’s anchor updates.
    @ ./node_modules/@wordpress/components/build-module/border-box-control/index.js 1:0-77
    @ ./node_modules/@wordpress/components/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/toolbar-group/index.js
    Module parse failed: Unexpected token (61:4)
    You may need an appropriate loader to handle this file type.
    | isCollapsed,
    | title,
    | …props
    | } = _ref;
    | // It’ll contain state if ToolbarGroup is being used within
    @ ./node_modules/@wordpress/components/build-module/index.js 111:0-58
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/block-settings-menu-controls/index.js
    Module parse failed: Unexpected token (62:17)
    You may need an appropriate loader to handle this file type.
    | const showConvertToGroupButton = (isGroupable || isUngroupable) && canRemove;
    | return createElement(Slot, {
    | fillProps: { …fillProps,
    | __unstableDisplayLocation,
    | selectedBlocks,
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js 88:0-86
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/hooks/layout.js
    Module parse failed: Unexpected token (62:201)
    You may need an appropriate loader to handle this file type.
    | default: defaultBlockLayout
    | } = getBlockSupport(name, layoutBlockSupportKey) || {};
    | const usedLayout = layout !== null && layout !== void 0 && layout.inherit || layout !== null && layout !== void 0 && layout.contentSize || layout !== null && layout !== void 0 && layout.wideSize ? { …layout,
    | type: ‘constrained’
    | } : layout || defaultBlockLayout || {};
    @ ./node_modules/@wordpress/block-editor/build-module/hooks/index.js 17:0-18 22:0-61
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/text/hook.js
    Module parse failed: Unexpected token (62:4)
    You may need an appropriate loader to handle this file type.
    | variant,
    | weight = CONFIG.fontWeight,
    | …otherProps
    | } = useContextSystem(props, ‘Text’);
    | /** @type {import(‘react’).ReactNode} */
    @ ./node_modules/@wordpress/components/build-module/text/index.js 2:0-44
    @ ./node_modules/@wordpress/components/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/compose/build-module/hooks/use-dialog/index.js
    Module parse failed: Unexpected token (63:222)
    You may need an appropriate loader to handle this file type.
    | });
    | }, []);
    | return [useMergeRefs([options.focusOnMount !== false ? constrainedTabbingRef : null, options.focusOnMount !== false ? focusReturnRef : null, options.focusOnMount !== false ? focusOnMountRef : null, closeOnEscapeRef]), { …focusOutsideProps,
    | tabIndex: -1
    | }];
    @ ./node_modules/@wordpress/compose/build-module/index.js 21:0-72
    @ ./node_modules/@wordpress/block-editor/build-module/components/color-palette/with-color-context.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/border-control/border-control/component.js
    Module parse failed: Unexpected token (64:4)
    You may need an appropriate loader to handle this file type.
    | __experimentalIsRenderedInSidebar,
    | __next36pxDefaultSize,
    | …otherProps
    | } = useBorderControl(props);
    | return createElement(View, _extends({
    @ ./node_modules/@wordpress/components/build-module/border-control/index.js 1:0-70
    @ ./node_modules/@wordpress/components/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/animate/index.js
    Module parse failed: Unexpected token (65:6)
    You may need an appropriate loader to handle this file type.
    | className: getAnimateClassName({
    | type,
    | …options
    | })
    | });
    @ ./node_modules/@wordpress/components/build-module/navigation/index.js 17:0-49
    @ ./node_modules/@wordpress/components/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/blocks/build-module/api/parser/index.js
    Module parse failed: Unexpected token (66:11)
    You may need an appropriate loader to handle this file type.
    | function convertLegacyBlocks(rawBlock) {
    | const [correctName, correctedAttributes] = convertLegacyBlockNameAndAttributes(rawBlock.blockName, rawBlock.attrs);
    | return { …rawBlock,
    | blockName: correctName,
    | attrs: correctedAttributes
    @ ./node_modules/@wordpress/blocks/build-module/api/index.js 25:0-44
    @ ./node_modules/@wordpress/blocks/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/range-control/index.js
    Module parse failed: Unexpected token (66:4)
    You may need an appropriate loader to handle this file type.
    | value: valueProp,
    | withInputField = true,
    | …otherProps
    | } = props;
    | const [value, setValue] = useControlledRangeValue({
    @ ./node_modules/@wordpress/components/build-module/index.js 87:0-58
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/disabled/index.js
    Module parse failed: Unexpected token (67:4)
    You may need an appropriate loader to handle this file type.
    | children,
    | isDisabled = true,
    | …props
    | } = _ref;
    | const ref = useDisabled();
    @ ./node_modules/@wordpress/components/build-module/index.js 29:0-49
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/block-mover/button.js
    Module parse failed: Unexpected token (67:4)
    You may need an appropriate loader to handle this file type.
    | direction,
    | orientation: moverOrientation,
    | …props
    | } = _ref;
    | const instanceId = useInstanceId(BlockMoverButton);
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-mover/index.js 21:0-68
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/blocks/build-module/api/serializer.js
    Module parse failed: Unexpected token (67:60)
    You may need an appropriate loader to handle this file type.
    | attributes
    | } = blockPropsProvider;
    | return applyFilters(‘blocks.getSaveContent.extraProps’, { …props
    | }, blockType, attributes);
    | }
    @ ./node_modules/@wordpress/blocks/build-module/api/index.js 38:0-303
    @ ./node_modules/@wordpress/blocks/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-input.js
    Module parse failed: Unexpected token (67:63)
    You may need an appropriate loader to handle this file type.
    | };
    |
    | const handleRenderSuggestions = props => renderSuggestions({ …props,
    | instanceId,
    | withCreateSuggestion,
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js 49:0-94
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/blocks/build-module/store/actions.js
    Module parse failed: Unexpected token (69:62)
    You may need an appropriate loader to handle this file type.
    | name
    | } = blockType;
    | const settings = applyFilters(‘blocks.registerBlockType’, { …blockType
    | }, name, null);
    |
    @ ./node_modules/@wordpress/blocks/build-module/store/index.js 11:0-37
    @ ./node_modules/@wordpress/blocks/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/rich-text/index.js
    Module parse failed: Unexpected token (71:4)
    You may need an appropriate loader to handle this file type.
    | disableSuggestions,
    | disableAutocorrection,
    | …restProps
    | } = props;
    | return restProps;
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js 61:0-121
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/alignment-control/ui.js
    Module parse failed: Unexpected token (72:15)
    You may need an appropriate loader to handle this file type.
    | } = control;
    | const isActive = value === align;
    | return { …control,
    | isActive,
    | role: isCollapsed ? ‘menuitemradio’ : undefined,
    @ ./node_modules/@wordpress/block-editor/build-module/components/alignment-control/index.js 7:0-31
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/transforms/url-rewrite.js
    Module parse failed: Unexpected token (72:20)
    You may need an appropriate loader to handle this file type.
    |
    | function processURL(baseURL) {
    | return meta => ({ …meta,
    | newUrl: ‘url(‘ + meta.before + meta.quote + getResourcePath(meta.value, baseURL) + meta.quote + meta.after + ‘)’
    | });
    @ ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/index.js 15:0-50
    @ ./node_modules/@wordpress/block-editor/build-module/utils/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/navigation/use-create-navigation-tree.js
    Module parse failed: Unexpected token (76:27)
    You may need an appropriate loader to handle this file type.
    | addMenu: (key, value) => {
    | setChildMenu(state => {
    | const newState = { …state
    | };
    |
    @ ./node_modules/@wordpress/components/build-module/navigation/index.js 21:0-71
    @ ./node_modules/@wordpress/components/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/colors/with-colors.js
    Module parse failed: Unexpected token (78:13)
    You may need an appropriate loader to handle this file type.
    | function createColorHOC(colorTypes, withColorPalette) {
    | const colorMap = reduce(colorTypes, (colorObject, colorType) => {
    | return { …colorObject,
    | …(typeof colorType === ‘string’ ? {
    | [colorType]: kebabCase(colorType)
    @ ./node_modules/@wordpress/block-editor/build-module/components/colors/index.js 2:0-77
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/block-lock/modal.js
    Module parse failed: Unexpected token (78:6)
    You may need an appropriate loader to handle this file type.
    | move: !canMove,
    | remove: !canRemove,
    | …(isReusable ? {
    | edit: !canEdit
    | } : {})
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-lock/index.js 2:0-52
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/blocks/build-module/api/factory.js
    Module parse failed: Unexpected token (78:82)
    You may need an appropriate loader to handle this file type.
    | const clientId = uuid();
    |
    | const sanitizedAttributes = __experimentalSanitizeBlockAttributes(block.name, { …block.attributes,
    | …mergeAttributes
    | });
    @ ./node_modules/@wordpress/blocks/build-module/api/index.js 7:0-232
    @ ./node_modules/@wordpress/blocks/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/base-control/index.js
    Module parse failed: Unexpected token (81:4)
    You may need an appropriate loader to handle this file type.
    | className,
    | children,
    | …props
    | } = _ref2;
    | return createElement(StyledVisualLabel, _extends({}, props, {
    @ ./node_modules/@wordpress/components/build-module/index.js 9:0-56
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/dom/build-module/phrasing-content.js
    Module parse failed: Unexpected token (81:4)
    You may need an appropriate loader to handle this file type.
    | const {
    | [tag]: removedTag,
    | …restSchema
    | } = textContentSchema;
    | textContentSchema[tag].children = restSchema;
    @ ./node_modules/@wordpress/dom/build-module/index.js 16:0-35
    @ ./node_modules/@wordpress/block-editor/build-module/components/media-replace-flow/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/font-appearance-control/index.js
    Module parse failed: Unexpected token (82:4)
    You may need an appropriate loader to handle this file type.
    | fontWeight
    | },
    | …otherProps
    | } = props;
    | const hasStylesOrWeights = hasFontStyles || hasFontWeights;
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js 34:0-91
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/components/color-style-selector/index.js
    Module parse failed: Unexpected token (82:4)
    You may need an appropriate loader to handle this file type.
    | let {
    | children,
    | …other
    | } = _ref4;
    | deprecated(wp.blockEditor.BlockColorsStyleSelector, {
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js 17:0-77
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/snackbar/list.js
    Module parse failed: Unexpected token (82:6)
    You may need an appropriate loader to handle this file type.
    | const {
    | content,
    | …restNotice
    | } = notice;
    | return createElement(motion.div, {
    @ ./node_modules/@wordpress/components/build-module/index.js 94:0-58
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/tree-select/index.js
    Module parse failed: Unexpected token (83:4)
    You may need an appropriate loader to handle this file type.
    | selectedId,
    | tree = [],
    | …props
    | } = _ref;
    | const options = useMemo(() => {
    @ ./node_modules/@wordpress/components/build-module/index.js 116:0-54
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/hooks/content-lock-ui.js
    Module parse failed: Unexpected token (83:46)
    You may need an appropriate loader to handle this file type.
    | templateLock: ‘contentOnly’
    | });
    | updateBlockListSettings(props.clientId, { …getBlockListSettings(props.clientId),
    | templateLock: ‘contentOnly’
    | });
    @ ./node_modules/@wordpress/block-editor/build-module/hooks/index.js 18:0-27
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/primitives/build-module/svg/index.js
    Module parse failed: Unexpected token (87:4)
    You may need an appropriate loader to handle this file type.
    | className,
    | isPressed,
    | …props
    | } = _ref;
    | const appliedProps = { …props,
    @ ./node_modules/@wordpress/primitives/build-module/index.js 1:0-22
    @ ./node_modules/@wordpress/icons/build-module/library/wordpress.js
    @ ./node_modules/@wordpress/icons/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/blocks/build-module/api/raw-handling/shortcode-converter.js
    Module parse failed: Unexpected token (89:40)
    You may need an appropriate loader to handle this file type.
    | }
    |
    | const transformationBlockType = { …blockType,
    | attributes: transformation.attributes
    | };
    @ ./node_modules/@wordpress/blocks/build-module/api/raw-handling/index.js 17:0-55
    @ ./node_modules/@wordpress/blocks/build-module/api/index.js
    @ ./node_modules/@wordpress/blocks/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/higher-order/navigate-regions/index.js
    Module parse failed: Unexpected token (90:4)
    You may need an appropriate loader to handle this file type.
    | let {
    | shortcuts,
    | …props
    | } = _ref3;
    | return createElement(“div”, useNavigateRegions(shortcuts), createElement(Component, props));
    @ ./node_modules/@wordpress/components/build-module/index.js 127:0-129
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/focal-point-picker/index.js
    Module parse failed: Unexpected token (91:4)
    You may need an appropriate loader to handle this file type.
    | y: 0.5
    | },
    | …restProps
    | } = _ref;
    | const [point, setPoint] = useState(valueProp);
    @ ./node_modules/@wordpress/components/build-module/index.js 42:0-67
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/panel/body.js
    Module parse failed: Unexpected token (92:4)
    You may need an appropriate loader to handle this file type.
    | icon,
    | title,
    | …props
    | } = _ref2;
    | if (!title) return null;
    @ ./node_modules/@wordpress/components/build-module/index.js 78:0-52
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/blocks/build-module/api/node.js
    Module parse failed: Unexpected token (93:13)
    You may need an appropriate loader to handle this file type.
    | return {
    | type: domNode.nodeName.toLowerCase(),
    | props: { …getNamedNodeMapAsObject(domNode.attributes),
    | children: children.fromDOM(domNode.childNodes)
    | }
    @ ./node_modules/@wordpress/blocks/build-module/api/index.js 90:0-41
    @ ./node_modules/@wordpress/blocks/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/block-editor/build-module/hooks/align.js
    Module parse failed: Unexpected token (93:28)
    You may need an appropriate loader to handle this file type.
    | if (hasBlockSupport(settings, ‘align’)) {
    | // Gracefully handle if settings.attributes is undefined.
    | settings.attributes = { …settings.attributes,
    | align: {
    | type: ‘string’,
    @ ./node_modules/@wordpress/block-editor/build-module/hooks/index.js 5:0-17
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/blocks/build-module/api/utils.js
    Module parse failed: Unexpected token (96:13)
    You may need an appropriate loader to handle this file type.
    |
    | const maxContrast = Math.max(…ICON_COLORS.map(getColorContrast));
    | return { …icon,
    | foreground: icon.foreground ? icon.foreground : ICON_COLORS.find(iconColor => getColorContrast(iconColor) === maxContrast),
    | shadowColor: colordBgColor.alpha(0.3).toRgbString()
    @ ./node_modules/@wordpress/blocks/build-module/api/index.js 81:0-281
    @ ./node_modules/@wordpress/blocks/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/block-toolbar/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/box-control/index.js
    Module parse failed: Unexpected token (96:30)
    You may need an appropriate loader to handle this file type.
    | };
    |
    | const inputControlProps = { …inputProps,
    | onChange: handleOnChange,
    | onFocus: handleOnFocus,
    @ ./node_modules/@wordpress/components/build-module/index.js 12:0-122
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/custom-select-control/index.js
    Module parse failed: Unexpected token (99:4)
    You may need an appropriate loader to handle this file type.
    | itemToString,
    | onSelectedItemChange,
    | …(typeof _selectedItem !== ‘undefined’ && _selectedItem !== null ? {
    | selectedItem: _selectedItem
    | } : undefined),
    @ ./node_modules/@wordpress/components/build-module/index.js 25:0-73
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js

    ERROR in ./node_modules/@wordpress/components/build-module/v-stack/hook.js
    Module parse failed: Unexpected token (9:4)
    You may need an appropriate loader to handle this file type.
    | const {
    | expanded = false,
    | …otherProps
    | } = useContextSystem(props, ‘VStack’);
    | const hStackProps = useHStack({
    @ ./node_modules/@wordpress/components/build-module/v-stack/index.js 2:0-35
    @ ./node_modules/@wordpress/components/build-module/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/link-control/search-item.js
    @ ./node_modules/@wordpress/block-editor/build-module/components/index.js
    @ ./node_modules/@wordpress/block-editor/build-module/index.js
    @ ./blocks/mandoe-hero/edit.js
    @ ./blocks/mandoe-hero/index.js
    @ ./blocks/index.js`

    Here is my package.json:

    {
      "name": "jsforwp-blocks",
      "version": "4.0.0",
      "license": "MIT",
      "main": "blocks/index.js",
      "scripts": {
        "dev": "cross-env webpack --watch",
        "build": "cross-env NODE_ENV=production webpack -p"
      },
      "devDependencies": {
        "@wordpress/babel-preset-default": "^1.2.0",
        "@wordpress/block-editor": "^10.2.0",
        "@wordpress/scripts": "^24.3.0",
        "babel-core": "^6.26.3",
        "babel-eslint": "^8.2.3",
        "babel-loader": "^7.1.4",
        "classnames": "^2.2.5",
        "cross-env": "^5.1.5",
        "css-loader": "^0.28.11",
        "eslint": "^4.19.1",
        "extract-text-webpack-plugin": "^3.0.2",
        "node-sass": "^4.9.0",
        "postcss-loader": "^2.1.5",
        "raw-loader": "^0.5.1",
        "sass-loader": "^6.0.7",
        "style-loader": "^0.19.1",
        "webpack": "^3.11.0"
      }
    }

    Help appreciated.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.