bufferhead-code / nextjs-use-php

Use PHP code right within your React / Next.js App. With "use php";
MIT License
618 stars 16 forks source link

Unexpected keyword or identifier for print #19

Open IlirEdis opened 8 months ago

IlirEdis commented 8 months ago

I'm trying to implement this on my existing project but i get this error:

Screenshot 2024-01-04 at 11 35 48

How do i enable 'use php' directive in my existing project?

Does this really work or its a kind of a joke? Can i run cURL in here? Can i use this in my production app hosted on vercel?

lukaulk commented 7 months ago

Take another look at the use php documentation, see the file tries to change to .tsx or jsx