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.

We have a config that is used in multiple projects and we want to use the presets functionality.

Here is an example of the config, I declare it in one file for testing:

const presetExample = {
  theme: {
    fontFamily: {
      sans:
        'Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif',
    },
    colors: COLORS,
    borderRadius: BORDER_RADIUS,
    boxShadow: SHADOW,
  },
  plugins: [
    plugin(function ({ addUtilities }) {
      addUtilities(TYPOGRAPHY);
      addUtilities(BACKGROUND);
    }),
  ],
};

export default defineConfig({
  presets: [presetExample]
});

Then in vscode it shows an error: image

and the error log: image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
alexanderniebuhrcommented, Mar 17, 2021

It seems that it get not parsed

this is the issue, have to wait for @antfu let me know how we can call defineConfig convert

1reaction
antfucommented, Mar 17, 2021

@alexanderniebuhr looked at the stack trace, it does not seem be the reason of using defineConfig

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preset Support
Browse our in depth docs to help you get the most out of Preset Cloud or submit a support ticket.
Read more >
When trying to configure presets for the “create f... - 4013882
when trying to configure presets for the "create from scanner " option, the following occurs: We are unable to scan from the document...
Read more >
FIX: Adobe scanner doesn't support presets - Windows Report
If the Adobe Scanner states that it does not support presets, check our guide with simple solutions in order to fix this error....
Read more >
Error: Does not support presets - Acrobat Answers
After reinstalling Adobe on a different computer with a different scanner, I can no longer use "Create>PDF from scanner>Black&White Document". Custom.
Read more >
Support Center - Visual Flow Presets
How may we help you? ; 01 - Visual Flow FAQs · 01. General FAQs · 02. What are Dual Illuminant Profiles? ;...
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