question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cant ng build because => "Error: Unexpected '/'. Escaping special characters with \ may help."

See original GitHub issue

I am trying to ng serve --prod but i get an error.

Error: Unexpected β€˜/’. Escaping special characters with \ may help.

Looking online. It seems to be an issue with escaping \ when using @apply (example => @apply text-8\/2 font-bold;)

However β€” i don’t have any @applys that use \. Also when i use @apply vscode gives me syntax errors despite using postcss language support

semi-colon expectedscss(css-semicolonexpected)

Screen Shot 2021-05-27 at 12 25 32 PM

β€œ@ngneat/tailwind”: β€œ^7.0.3”, β€œ@angular/cli”: β€œ12.0.0”, β€œ@nrwl/cli”: β€œ12.3.4”, β€œ@nrwl/cypress”: β€œ12.3.4”, β€œ@nrwl/eslint-plugin-nx”: β€œ12.3.4”, β€œ@nrwl/jest”: β€œ12.3.4”, β€œ@nrwl/linter”: β€œ12.3.4”, β€œ@nrwl/nx-cloud”: β€œlatest”, β€œ@nrwl/storybook”: β€œ^12.3.4”, β€œ@nrwl/tao”: β€œ12.3.4”, β€œ@nrwl/workspace”: β€œ12.3.4”,

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11

github_iconTop GitHub Comments

10reactions
rohittidkecommented, Jul 30, 2021

@Jackeysharath my problem was resolved, it was not related to tailwin, it was due to */ comment which was not completed. the angular compiler doesn’t look for errors in the CSS declarations so it doesn’t show compile errors.

4reactions
waqas-raza-dhcommented, Jan 4, 2022

same issue with my code. Fixed by converting //comments to /* comments */

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected '/'. Escaping special characters with \ may help
How to fix it? 1.) Just go to your all css files 2.) next / or * find it in your css files...
Read more >
modular-css/modular-css - Gitter
Escaping special characters with \ may help." So that's the error webpack should give if the file is invalid, more or less.
Read more >
Tasks in Visual Studio Code
Tasks in VS Code can be configured to run scripts and start processes so that many ... the command needs to contain the...
Read more >
Page names with special characters to generate regular URL
Even special characters like German umlaut or cyrillic letters can be used in the links. They will be ignored since only the id...
Read more >
SyntaxError: illegal character - JavaScript - MDN Web Docs
There is an invalid or unexpected token that doesn't belong at this position in the code. Use an editor that supports syntax highlighting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found