sst / ion

❍ — a new engine for SST
https://ion.sst.dev
MIT License
1.09k stars 126 forks source link

No loader is configured for ".node" #450

Closed fl0wo closed 1 month ago

fl0wo commented 1 month ago

Hi, i'm not sure what I'm doing wrong, I'm trying to deploy an Astro Website with sst.

flo@Florians-MBP mc-donald % sst deploy --verbose
time=2024-05-20T20:56:02.470+02:00 level=INFO msg="checking for pulumi" path="/Users/flo/Library/Application Support/sst/bin/pulumi"
time=2024-05-20T20:56:02.595+02:00 level=INFO msg="checking for bun" path="/Users/flo/Library/Application Support/sst/bin/bun"
time=2024-05-20T20:56:02.599+02:00 level=INFO msg="initializing project" version=0.0.383
time=2024-05-20T20:56:02.600+02:00 level=INFO msg="esbuild building"
time=2024-05-20T20:56:02.980+02:00 level=ERROR msg="esbuild error" text="Could not resolve \"@babel/preset-typescript/package.json\"" location.file=node_modules/@babel/core/lib/config/files/module-types.js location.line=99 column=40
time=2024-05-20T20:56:02.980+02:00 level=ERROR msg="esbuild error" text="No loader is configured for \".node\" files: node_modules/fsevents/fsevents.node" location.file=node_modules/fsevents/fsevents.js location.line=13 column=23
time=2024-05-20T20:56:02.981+02:00 level=ERROR msg="exited with error" err="node_modules/@babel/core/lib/config/files/module-types.js:99:40: Could not resolve \"@babel/preset-typescript/package.json\"\nnode_modules/fsevents/fsevents.js:13:23: No loader is configured for \".node\" files: node_modules/fsevents/fsevents.node"
×  node_modules/@babel/core/lib/config/files/module-types.js:99:40: Could not resolve "@babel/preset-typescript/package.json"
node_modules/fsevents/fsevents.js:13:23: No loader is configured for ".node" files: node_modules/fsevents/fsevents.node
fl0wo commented 1 month ago

Literally every cmd I run there's this error that blocks it.

Very weird

flo@Florians-MBP mc-donald % sst install
×  node_modules/fsevents/fsevents.js:13:23: No loader is configured for ".node" files: node_modules/fsevents/fsevents.node
flo@Florians-MBP mc-donald % sst upgrade
✓  Already on latest 0.0.383
flo@Florians-MBP mc-donald % sst refresh
×  node_modules/fsevents/fsevents.js:13:23: No loader is configured for ".node" files: node_modules/fsevents/fsevents.node
flo@Florians-MBP mc-donald % 
jayair commented 1 month ago

Version of Node?

fl0wo commented 1 month ago

Oh shit, was I deploying using sst.ion on a sst2 project? I don't even know what I'm doing, sorry for taking your time, way too many coding hours.

Running "npx sst deploy --verbose" works (*uses sst2)

Running "sst deploy --verbose" does not.

Closing as not an issue.

fl0wo commented 1 month ago

Version of Node?

20