Was trying to run ION with some super generic nextjs app, but it didnt work for some reason, tried to follow the steps for the Use Next.js with SST but got the same result. Commands + logs as follows:
$ npx create-next-app@latest sst-perf
Need to install the following packages:
create-next-app@14.1.4
Ok to proceed? (y)
✔ Would you like to use TypeScript? … No / Yes
✔ Would you like to use ESLint? … No / Yes
✔ Would you like to use Tailwind CSS? … No / Yes
✔ Would you like to use `src/` directory? … No / Yes
✔ Would you like to use App Router? (recommended) … No / Yes
✔ Would you like to customize the default import alias (@/*)? … No / Yes
Creating a new Next.js app in ___
Using npm.
Initializing project with template: app
Installing dependencies:
- react
- react-dom
- next
Installing devDependencies:
- typescript
- @types/node
- @types/react
- @types/react-dom
added 27 packages, and audited 28 packages in 4s
3 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Initialized a git repository.
Success! Created sst-perf at ___
$ cd sst-perf/
$ sst version
0.0.283
$ sst init --verbose
time=2024-04-09T19:13:55.159-03:00 level=INFO msg="checking for pulumi" path="/Users/_/Library/Application Support/sst/bin/pulumi"
time=2024-04-09T19:13:55.248-03:00 level=INFO msg="checking for bun" path="/Users/_/Library/Application Support/sst/bin/bun"
███████╗███████╗████████╗
██╔════╝██╔════╝╚══██╔══╝
███████╗███████╗ ██║
╚════██║╚════██║ ██║
███████║███████║ ██║
╚══════╝╚══════╝ ╚═╝
> Next.js detected. This will...
- create an sst.config.ts
- modify the tsconfig.json
- add the sst sdk to package.json
✓ Template: nextjs
✓ Using: aws
time=2024-04-09T19:13:57.283-03:00 level=INFO msg="creating project" name=sst-perf
time=2024-04-09T19:13:57.283-03:00 level=INFO msg=step type=copy
time=2024-04-09T19:13:57.283-03:00 level=INFO msg="copying template" path=templates/nextjs/files/sst-env.d.ts
time=2024-04-09T19:13:57.284-03:00 level=INFO msg="copying template" path=templates/nextjs/files/sst.config.ts
time=2024-04-09T19:13:57.284-03:00 level=INFO msg=step type=patch
time=2024-04-09T19:13:57.284-03:00 level=INFO msg=patching file=tsconfig.json patch="[\n {\n \"op\": \"add\",\n \"path\": \"/exclude/-\",\n \"value\": \"sst.config.ts\"\n }\n ]"
time=2024-04-09T19:13:57.285-03:00 level=INFO msg=step type=npm
time=2024-04-09T19:13:57.285-03:00 level=INFO msg="installing npm package" package=sst version=ion
time=2024-04-09T19:13:57.285-03:00 level=INFO msg="reading package.json" file=package.json
time=2024-04-09T19:13:57.285-03:00 level=INFO msg=step type=patch
time=2024-04-09T19:13:57.285-03:00 level=INFO msg=patching file=package.json patch=""
time=2024-04-09T19:13:57.285-03:00 level=ERROR msg="exited with error" err="hujson: line 1, column 1: parsing value: unexpected EOF"
× Unexpected error occurred. Please check the logs or run with --verbose for more details.
Was trying to run ION with some super generic nextjs app, but it didnt work for some reason, tried to follow the steps for the Use Next.js with SST but got the same result. Commands + logs as follows: