saltyshiomix / nextron

⚡ Next.js + Electron ⚡
https://npm.im/nextron
MIT License
3.69k stars 215 forks source link

Nextron Tailwind Example does not work with `pnpm` #462

Open hsk-kr opened 1 month ago

hsk-kr commented 1 month ago
image

OS: Apple M1 Sonoma 14.2.1 Node Version: 18.19.0 pnpm Version: 9.1.1

Reproduction:

> pnpm dlx create-nextron-app nextron_tailwind --example with-tailwindcss
> cd nextron_tailwind
> pnpm install
> pnpm run dev

It works after installing the package @babel/runtime-corejs3. I assume that npm may install the dependency as a ghost dependency, which comes along with other packages.

saltyshiomix commented 2 weeks ago

@hsk-kr

Sorry for late reply.

Could you try these options in your-project/.npmrc?

node-linker=hoisted
shamefully-hoist=true
public-hoist-pattern=*

If this is helpful, I'll update README :)


By the way, I just released nextron v9, which supports Next.js v14. If you have time, please try it!