cant ng build because => "Error: Unexpected '/'. Escaping special characters with \ may help."
See original GitHub issueI 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 @apply
s that use \
. Also when i use @apply vscode gives me syntax errors despite using postcss language support
semi-colon expectedscss(css-semicolonexpected)
β@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:
- Created 2 years ago
- Comments:11
@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.
same issue with my code. Fixed by converting //comments to /* comments */