DEV Community

Cover image for Ubuntu 22.04: Create Blitzjs app
Du Hoang
Du Hoang

Posted on

4 3

Ubuntu 22.04: Create Blitzjs app

OS: Ubuntu 22.04

There is a bug relevant to openSSL, prisma for this newest version of Ubuntu
There are 2 ways to fix it (Not really sure about this)

  • Update package, use prisma dev version (I chose this)
  • Install older openSSL version

Step-by-step to create a Blitzjs app

Create the app

npm install -g blitz --legacy-peer-deps
Enter fullscreen mode Exit fullscreen mode
blitz new myAppName
Enter fullscreen mode Exit fullscreen mode
cd myAppName
Enter fullscreen mode Exit fullscreen mode

Fix the bug

  • Open the project
  • Open package.json file
  • Update packages
dependencies: "@prisma/client": "3.13.0-dev.29"
devDependencies: "prisma": "3.13.0-dev.29"
Enter fullscreen mode Exit fullscreen mode

Migrate

blitz prisma migrate dev
Enter fullscreen mode Exit fullscreen mode

Start the project

blitz dev
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
duhoang profile image
Du Hoang • Edited

Update
The bug had been fixed, move to the newest prisma might fix the problem
Post: github.com/prisma/prisma/releases/...
For short: dev-to-uploads.s3.amazonaws.com/up...

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay