You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to try out Pluto's new TypeScript development environment as I want to make apps with type safety as well as easier bundling. I followed the instructions in the README, as well as install its' dependencies. It ran successfully the first time, but when trying to run Pluview, or try to access the app listing, it spat out this error message:
6 | export default function serve() {
7 | const app = express();
8 | app.use(cors());
9 |
10 | app.get('/apps', async (req, res) => {
11 | const glob = new Glob("*.js");
^
TypeError: undefined is not a constructor (evaluating 'new Glob("*.js")')
at /root/Pluto-TS-DevEnv/serve.ts:11:17
at /root/Pluto-TS-DevEnv/serve.ts:10:26
Current Setup
I'm running on Windows 10, with WSL (Ubuntu) for full Bun support. It's currently running at version 1.0.0.
Steps to Replicate
Run the dev server using bun start.
Go to your Pluto instance and open Pluview, or open the dev server's address and open its' app listing.
The app will hang, and an error is logged to the terminal.
Here's a video to demonstrate:
Code_fwJvMBTI5B.mp4
Full Stack Trace
6 | export default function serve() {
7 | const app = express();
8 | app.use(cors());
9 |
10 | app.get('/apps', async (req, res) => {
11 | const glob = new Glob("*.js");
^
TypeError: undefined is not a constructor (evaluating 'new Glob("*.js")')
at /root/Pluto-TS-DevEnv/serve.ts:11:17
at /root/Pluto-TS-DevEnv/serve.ts:10:26
at handle (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/layer.js:95:4)
at next (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/route.js:144:6)
at dispatch (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/route.js:114:2)
at handle (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/layer.js:95:4)
at /root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:284:8
at process_params (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:346:11)
at next (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:280:4)
at cors (/root/Pluto-TS-DevEnv/node_modules/cors/lib/index.js:188:6)
at /root/Pluto-TS-DevEnv/node_modules/cors/lib/index.js:224:16
at originCallback (/root/Pluto-TS-DevEnv/node_modules/cors/lib/index.js:214:14)
at /root/Pluto-TS-DevEnv/node_modules/cors/lib/index.js:219:12
at optionsCallback (/root/Pluto-TS-DevEnv/node_modules/cors/lib/index.js:199:8)
at corsMiddleware (/root/Pluto-TS-DevEnv/node_modules/cors/lib/index.js:204:6)
at handle (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/layer.js:95:4)
at trim_prefix (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:328:6)
at /root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:286:8
at process_params (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:346:11)
at next (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:280:4)
at expressInit (/root/Pluto-TS-DevEnv/node_modules/express/lib/middleware/init.js:40:4)
at handle (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/layer.js:95:4)
at trim_prefix (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:328:6)
at /root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:286:8
at process_params (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:346:11)
at next (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:280:4)
at query (/root/Pluto-TS-DevEnv/node_modules/express/lib/middleware/query.js:45:4)
at handle (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/layer.js:95:4)
at trim_prefix (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:328:6)
at /root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:286:8
at process_params (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:346:11)
at next (/root/Pluto-TS-DevEnv/node_modules/express/lib/router/index.js:280:4)
Issue
I wanted to try out Pluto's new TypeScript development environment as I want to make apps with type safety as well as easier bundling. I followed the instructions in the README, as well as install its' dependencies. It ran successfully the first time, but when trying to run Pluview, or try to access the app listing, it spat out this error message:
Current Setup
I'm running on Windows 10, with WSL (Ubuntu) for full Bun support. It's currently running at version
1.0.0.Steps to Replicate
bun start.Here's a video to demonstrate:
Code_fwJvMBTI5B.mp4
Full Stack Trace