puter icon indicating copy to clipboard operation
puter copied to clipboard

`npm start` failed on the 2nd run

Open XiaochenCui opened this issue 3 months ago • 0 comments

issue npm start failed on the 2nd run on linux env.

This caused the failure of recent CI jobs:

https://github.com/HeyPuter/puter/actions/workflows/test.yml

Image

how to reproduce

use linux env

git clone --recurse-submodules [email protected]:HeyPuter/puter.git
cd puter
npm install

# the 1st run succeeded
npm start

# the 2nd run failed
npm start

error logs:

> [email protected] start                                                  10:46:50 [12/1846]
> npm run build:ts && node ./tools/run-selfhosted.js

> [email protected] build:ts
> tsc

volatile/runtime/mod_packages/ExtensionController/src/ExtensionController.ts:2:50 - error T
S2307: Cannot find module '../../api.d.ts' or its corresponding type declarations.
2 import type { EndpointOptions, HttpMethod } from '../../api.d.ts';
                                                   ~~~~~~~~~~~~~~~~

volatile/runtime/mod_packages/ExtensionController/src/ExtensionController.ts:62:19 - error
TS7053: Element implicitly has an 'any' type because expression of type 'HttpMethod' can't
be used to index type 'Extension'.

62             if ( !extension[route.method] ){
                     ~~~~~~~~~~~~~~~~~~~~~~~

volatile/runtime/mod_packages/ExtensionController/src/ExtensionController.ts:67:18 - error
TS7053: Element implicitly has an 'any' type because expression of type 'HttpMethod' can't
be used to index type 'Extension'.

XiaochenCui avatar Nov 03 '25 18:11 XiaochenCui