-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
Describe the bug
复现步骤:
pnpm create blocklet my-blocklet
cd my-blocklet
pnpm i
pnpm dev
报错如下:
> blocklet dev
ℹ Try to dev blocklet from /Users/donotlb/repos/my-blocklet
ℹ Server DID zNKsaN9y3majBrxJmvYxGH7r8F1rDPBbFPqw
ℹ Server config from /Users/donotlb/blocklet-server/dev-server2/.blocklet-server/config.yml
✔ Installing application my-blocklet... Done in 0.121s
✔ Installing Component my-blocklet@0.1.0... Done in 0.325s
✔ Component my-blocklet@0.1.0 was successfully installed
2026-01-06T17:15:47: npm warn Unknown env config "shamefully-hoist". This will stop working in the next major version of npm.
2026-01-06T17:15:47: npm warn Unknown env config "npm-globalconfig". This will stop working in the next major version of npm.
2026-01-06T17:15:47: npm warn Unknown env config "recursive". This will stop working in the next major version of npm.
2026-01-06T17:15:47: npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm.
2026-01-06T17:15:47: npm warn Unknown env config "auto-install-peers". This will stop working in the next major version of npm.
2026-01-06T17:15:47: npm warn Unknown env config "_jsr-registry". This will stop working in the next major version of npm.
2026-01-06T17:15:47: npm warn Unknown project config "shamefully-hoist". This will stop working in the next major version of npm.
2026-01-06T17:15:47:
2026-01-06T17:15:47: > my-blocklet@0.1.0 start
2026-01-06T17:15:47: > cross-env NODE_ENV=development nodemon --exec tsx api/dev.ts -w api
2026-01-06T17:15:47:
2026-01-06T17:15:49: [nodemon] 3.1.11
2026-01-06T17:15:49: [nodemon] to restart at any time, enter `rs`
2026-01-06T17:15:49: [nodemon] watching path(s): api/**/*
2026-01-06T17:15:49: [nodemon] watching extensions: ts,json
2026-01-06T17:15:49: [nodemon] starting `tsx api/dev.ts`
2026-01-06T17:15:50: [dotenv-flow@4.1.0]: ".env*" files loading failed: no ".env*" files matching pattern ".env[.development][.local]" in "/Users/donotlb/repos/my-blocklet" dir undefined
2026-01-06T17:15:50: refresh connection token {
2026-01-06T17:15:50: exp: '1767691250',
2026-01-06T17:15:50: iat: '1767690950',
2026-01-06T17:15:50: iss: 'did:abt:zNKiYYKqHo3v1VLFmu4xt6wYYuDokHufFWML',
2026-01-06T17:15:50: nbf: '1767690950',
2026-01-06T17:15:50: version: '1.0.0'
2026-01-06T17:15:50: }
2026-01-06T17:15:50: > my-blocklet v0.1.0 ready on 17069
2026-01-06T17:15:50: file:///Users/donotlb/repos/my-blocklet/node_modules/.pnpm/vite-plugin-blocklet@0.14.4_rollup@4.55.1_vite@7.3.0_@types+node@20.19.27_jiti@2.6.1_tsx@4.21.0_yaml@2.8.2_/node_modules/vite-plugin-blocklet/libs/utils.js:5
2026-01-06T17:15:50: import { fromPublicKey, isValid } from '@arcblock/did';
2026-01-06T17:15:50: ^^^^^^^^^^^^^
2026-01-06T17:15:50: SyntaxError: The requested module '@arcblock/did' does not provide an export named 'fromPublicKey'
2026-01-06T17:15:50: at #_instantiate (node:internal/modules/esm/module_job:254:21)
2026-01-06T17:15:50: at async ModuleJob.run (node:internal/modules/esm/module_job:362:5)
2026-01-06T17:15:50: at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26)
2026-01-06T17:15:50:
2026-01-06T17:15:50: Node.js v24.4.1
2026-01-06T17:15:50: [nodemon] app crashed - waiting for file changes before starting...
Reproduction Steps
\
Observed Behavior
\
Expected Behavior
\
Possible Solution
No response
Additional Information/Context
No response
Metadata
Metadata
Assignees
Labels
No labels