patternfills icon indicating copy to clipboard operation
patternfills copied to clipboard

How do I use this programmatically?

Open Asday opened this issue 4 years ago • 0 comments

Can I use these programatically?

Yep! If you'd like to use Pattern Fills in your application. You can install patternfills via npm like so:

npm install --save patternfills

And then what?

import "patternfills" fails with "Could not find module in path: 'patternfills' relative to '/src/index.js'" (sandbox), and runkit has the following to say:

patternfills lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually

Attempting to import anything from a path under patternfills fails with the same error as trying to import patternfills itself.

Asday avatar Jan 29 '21 16:01 Asday