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

[6.12] Module suppresses errors for Nuxt templates #860

Closed
ineshbose opened this issue Jun 12, 2024 · 0 comments · May be fixed by eoskl/corp-web#2
Closed

[6.12] Module suppresses errors for Nuxt templates #860

ineshbose opened this issue Jun 12, 2024 · 0 comments · May be fixed by eoskl/corp-web#2
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@ineshbose
Copy link
Collaborator

Environment

any

Reproduction

No response

Describe the bug

This is the catch-block for when loading a config file:

tailwindcss/src/context.ts

Lines 128 to 134 in a0d7599

if (!configPath.startsWith(nuxt.options.buildDir)) {
configUpdatedHook[configPath] = 'return {};'
logger.warn(`Failed to load Tailwind config at: \`./${relative(nuxt.options.rootDir, configPath)}\``, e)
}
else {
configUpdatedHook[configPath] = nuxt.options.dev ? 'return {};' : ''
}

some configs are Nuxt templates (which may not be written to the filesystem yet without prepare), so we want to suppress those errors, but any other errors like syntax, module not found, etc tend to get ignored as well. This bit just needs some refactoring with the stricter conditions using the error e message/code.

Additional context

No response

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant