-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
UI/UX bug: invalid JavaScript syntax issue #35389
Comments
I set up the local server of rocket.chat successfully, please assign this issue to me and I will fix this bug |
Please use an appropriate title.
Which template? You need to be a lot more specific and descriptive. |
Please, read. No one assigns issues. Read ALL this, but start here: |
@reetp Fixed a syntax error in hello.ejs.t located in template/generator/new. The issue was causing incorrect template rendering. I have raised a pull request can you help me with the title? |
Description:
The default Hygen template in Rocket.Chat contains an invalid JavaScript syntax issue that prevents the generated file from executing properly. The issue is caused by incorrect use of backticks (`) in template literals.
Steps to Reproduce:
Clone the Rocket.Chat repository and navigate to the project directory.
Run the following Hygen command
hygen generator new --name TestComponent --action create
This generates a file at
app/hello.js
ISSUE: const hello = ```
Hello!
This is your first hygen template.
Learn what it can do here:
https://github.com/jondot/hygen
Expected behaviour : const hello = `
Hello!
This is your first Hygen template.
Learn what it can do here:
https://github.com/jondot/hygen
`;
console.log(hello);
The generated hello.js file should contain valid JavaScript code using proper template literals
The text was updated successfully, but these errors were encountered: