same error found while installing blueprint
ERROR in ./node_modules/pathe/dist/index.mjs 4:60
Module parse failed: Unexpected token (4:60)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| export { c as basename, d as dirname, e as extname, f as format, i as isAbsolute, j as join, m as matchesGlob, n as normalize, a as normalizeString, p as parse, b as relative, r as resolve, s as sep, t as toNamespacedPath } from './shared/pathe.M-eThtNZ.mjs';
|
| const mix = (del = delimiter) => {
ERROR in resources/scripts/components/elements/CopyOnClick.tsx:35:15
TS2578: Unused '@ts-expect-error' directive.
33 | ? React.Children.only(children)
34 | : React.cloneElement(React.Children.only(children), {
36 | className: classNames(children.props.className || '', 'cursor-pointer'),
37 | onClick: (e: React.MouseEvent<HTMLElement>) => {
38 | copy(String(text));
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Module parse failed: Unexpected token (4:60)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| export { c as basename, d as dirname, e as extname, f as format, i as isAbsolute, j as join, m as matchesGlob, n as normalize, a as normalizeString, p as parse, b as relative, r as resolve, s as sep, t as toNamespacedPath } from './shared/pathe.M-eThtNZ.mjs';
|
const delimiter = /* @PURE */ (() => globalThis.process?.platform === "win32" ? ";" : ":")();| const _platforms = { posix: void 0, win32: void 0 };
| const mix = (del = delimiter) => {
ERROR in resources/scripts/components/elements/CopyOnClick.tsx:35:15
TS2578: Unused '@ts-expect-error' directive.
33 | ? React.Children.only(children)
34 | : React.cloneElement(React.Children.only(children), {
35 | // @ts-expect-error todo: check on this| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36 | className: classNames(children.props.className || '', 'cursor-pointer'),
37 | onClick: (e: React.MouseEvent<HTMLElement>) => {
38 | copy(String(text));
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Support