runrab / bpmn-vue

bpmn流程设计器示例
https://bpmn-vue.vercel.app
5 stars 1 forks source link

大佬,启动报错能帮忙看下么,谢谢 #4

Open dry125 opened 6 months ago

dry125 commented 6 months ago

VITE v5.2.8 ready in 634 ms

➜ Local: http://localhost:5173/ ➜ Network: use --host to expose ➜ press h + enter to show help X [ERROR] Could not resolve "@bpmn-io/properties-panel/preact/hooks"

node_modules/bpmn-js-properties-panel/dist/index.js:3:20:
  3 │ var hooks = require('@bpmn-io/properties-panel/preact/hooks');
    ╵                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can mark the path "@bpmn-io/properties-panel/preact/hooks" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle. You can also surround this "require" call with a try/catch block to handle this failure at run-time instead of bundle-time.

X [ERROR] Could not resolve "@bpmn-io/properties-panel/preact/hooks"

node_modules/bpmn-js-properties-panel/dist/index.esm.js:1:70:
  1 │ import { useContext, useState, useEffect, useMemo, useCallback } from '@bpmn-io/properties-panel/preact/hooks';
    ╵                                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can mark the path "@bpmn-io/properties-panel/preact/hooks" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.

X [ERROR] Could not resolve "@bpmn-io/properties-panel"

node_modules/bpmn-js-properties-panel/dist/index.js:5:30:
  5 │ var propertiesPanel = require('@bpmn-io/properties-panel');
    ╵                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can mark the path "@bpmn-io/properties-panel" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle. You can also surround this "require" call with a try/catch block to handle this failure at run-time instead of bundle-time.

X [ERROR] Could not resolve "@bpmn-io/properties-panel"

node_modules/bpmn-js-properties-panel/dist/index.esm.js:3:384:
  3 │ ...ieldEntryEdited, TextFieldEntry, Group, FeelEntry as FeelEntry$1, isFeelEntryEdited, isToggleSwitchEntryEdited, ToggleSwitchEntry, ListGroup, ListEntry, SimpleEntry, CollapsibleEntry } from '@bpmn-io/properties-panel'; 
    ╵                                                                                                                                                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~  

You can mark the path "@bpmn-io/properties-panel" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.

X [ERROR] Could not resolve "@bpmn-io/properties-panel/preact"

node_modules/bpmn-js-properties-panel/dist/index.js:6:21:
  6 │ var preact = require('@bpmn-io/properties-panel/preact');
    ╵                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can mark the path "@bpmn-io/properties-panel/preact" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle. You can also surround this "require" call with a try/catch block to handle this failure at run-time instead of bundle-time.

X [ERROR] Could not resolve "@bpmn-io/properties-panel/preact"

node_modules/bpmn-js-properties-panel/dist/index.esm.js:4:38:
  4 │ import { createContext, render } from '@bpmn-io/properties-panel/preact';
    ╵                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can mark the path "@bpmn-io/properties-panel/preact" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.

X [ERROR] Could not resolve "@bpmn-io/properties-panel/preact/compat"

node_modules/bpmn-js-properties-panel/dist/index.js:10:20:
  10 │ var React = require('@bpmn-io/properties-panel/preact/compat');
     ╵                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can mark the path "@bpmn-io/properties-panel/preact/compat" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle. You can also surround this "require" call with a try/catch block to handle this failure at run-time instead of bundle-time.

X [ERROR] Could not resolve "@bpmn-io/properties-panel/preact/compat"

node_modules/bpmn-js-properties-panel/dist/index.esm.js:8:18:
  8 │ import React from '@bpmn-io/properties-panel/preact/compat';
    ╵                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

from the bundle, which will remove this error and leave the unresolved path in the bundle. You can also surround this "require" call with a try/catch block to handle this failure at run-time instead of bundle-time.

X [ERROR] Could not resolve "@bpmn-io/properties-panel/preact/jsx-runtime"

node_modules/bpmn-js-properties-panel/dist/index.esm.js:9:26:
  9 │ import { jsx, jsxs } from '@bpmn-io/properties-panel/preact/jsx-runtime';
    ╵                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can mark the path "@bpmn-io/properties-panel/preact/jsx-runtime" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.

runrab commented 6 months ago

重新安装 "bpmn-js-properties-panel": "^5.14.0",试试 ,或者用pnpm/yarn安装