Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React not working #347

Open
Jarco-dev opened this issue Oct 8, 2022 · 5 comments
Open

React not working #347

Jarco-dev opened this issue Oct 8, 2022 · 5 comments

Comments

@Jarco-dev
Copy link

Jarco-dev commented Oct 8, 2022

When ever i try to use consolidate.react it throws this error on the first < it finds am i doing something wrong / am i missing something or is this something wrong with the package

image

@jared-leddy
Copy link

Yeah man. I'm getting an error too. No idea why.

{
  "statusCode": 400,
  "message": "Cannot use import statement outside a module",
  "error": "Bad Request"
}

@jared-leddy
Copy link

@Jarco-dev what's your file test.tsx look like?

@Jarco-dev
Copy link
Author

Jarco-dev commented Oct 24, 2022

@Jarco-dev what's your file test.tsx look like?

To be honest I don't have it anymore as I gave up and ended up switching to ejs as the driver instead of react although I would've highly preferred react if it worked.

But it was about as simple of a react component as possible if i remember correctly it was literally a function returning the h1 you can see in the error

@titanism
Copy link

titanism commented Jun 8, 2023

We have forked this repository for maintenance and released it under @ladjs/consolidate, see https://github.com/ladjs/consolidate.js. We have merged PR's and updated it for email-templates. Please click the "Watch" button to get notified of all releases at https://github.com/ladjs/consolidate.js. Thank you 🙏

Screen Shot 2023-06-08 at 3 05 12 PM

PR welcome at the new repo once new release is published today!

@titanism
Copy link

titanism commented Jun 9, 2023

v1.0.0 of consolidate has been released (and mirrored to @ladjs/consolidate) 🎉

watch/follow https://github.com/ladjs/consolidate for updates and to submit future issues and PR's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants