Blitz: Blitz recipes failing on Ubuntu Server

Created on 4 Aug 2020  路  12Comments  路  Source: blitz-js/blitz

What is the problem?

I am trying to use the new feature blitz recipes (blitz install tailwind) and i'm getting typescript errors.

Steps to Reproduce

  1. blitz new test
  2. cd test
  3. blitz install tailwind

Versions

Linux 5.4 | linux-x64 | Node: v12.18.3

blitz: 0.17.0 (global)
blitz: 0.17.0 (local)

Other

Typescript errors:
image

kinbug olinux scopinstaller statudone

All 12 comments

Sorry about that @jose-donato! It appears to be a platform compatibility issue with Linux. We'll get it fixed.

cc @aem

No worries. thanks for the awesome framework and the fast reply. Looking forward to start contributing!

~Oops. I know what's going on here. For local Blitz dev we don't need to manually install the types because it's always running through the yarn workspace, but for prod builds the types aren't included. I'll add those to the existing recipes and update the docs as well~ see comment below

I'm no longer totally sure what's going on here. On a Linux VM with a brand new node/npm/yarn/blitz setup I was able to create a new app and install the recipe without a problem.

@jose-donato is there any chance you generated a plain JS project rather than a TS project?

Yes, of course. I'll try that as soon as i can. (Additional info: I'm using Ubuntu Server 20.04)

Oops sorry for the confusion, I wasn't asking you to generate your own JS project, but if you generated a JS project instead of TS then this would make sense, that's all

Oh, sorry. I misunderstood. Nop, i just used blitz new <name>

Tried with another linux distro (Lubuntu 19.04) and it is working fine!

Interesting. I wonder if the server distro does something weird with symlinks, temp directories, or how child processes get access to the filesystem. Any of those three could cause this. I'll do a little more digging, but good to know at least that it's limited to a specific distro

Just to give a little update, i tried again in the same machine and it worked. I don't know if i was being noob in the first time or it was really an error.

Anyway thanks for the help!

Glad to know it's working now, even if we don't know why! 馃槅 I'm going to close for now but let us know if this reappears!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

svobik7 picture svobik7  路  3Comments

LoriKarikari picture LoriKarikari  路  4Comments

timsuchanek picture timsuchanek  路  5Comments

ganeshmani picture ganeshmani  路  4Comments

eorenstein1 picture eorenstein1  路  3Comments