airbnb / goji-js

React ❤️ Mini Program
https://goji.js.org
MIT License
224 stars 27 forks source link

Goji cli not building for alipay #174

Closed ALWISHARIFF closed 2 years ago

ALWISHARIFF commented 2 years ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Expected Behavior

When i run npm run build alipay it should create a dist folder with the compiled files.

Current Behavior

What is the current behavior? When I create a new goji js application when i do cd my-goji-app then npm install it successfully installs dependencies but when i run npm run build alipay i get this error Screenshot from 2022-11-21 09-48-55 when i install with npm install linaria and run npm run build alipay i get another different error Screenshot from 2022-11-21 09-57-12 Screenshot from 2022-11-21 09-57-34

Failure Information (for bugs)

This looks like a bug am not sure why this is happening i used windows i also switched to wsl and also installed ubuntu 20 on my machine but the errors are the same i tried changing node versions to older ones but the same errors apperead unfortunately

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

1.npm create goji-app my-goji-app 2.cd my-goji-app 3.npm install 4.npm run build alipay

Context

malash commented 2 years ago

Hi @ALWISHARIFF , thanks for your reporting, I confirmed there is a missing dependency in create goji-app template.

Because GojiJS now support Linaria v2, you can fix the bug temporary by running npm install linaria@2.

I'll create a PR to this issue later.