Skip to content

Hoy to use npm packages with no css in "main" but "style" defined? #95

@YerkoPalma

Description

@YerkoPalma

I have the following problem. I'm using two npm packages that use css defined on their package.json files. The first one, tachyons, defines in the main and style section a path to the css. The second one, leaflet, define a js file in his main section and a css file in his style section. When I use them with sheetify, tachyons work, but leaflet fails. I'm using it like this.

const sf = require('sheetify')

sf('tachyons', { global: true })
sf('leaflet', { global: true })

That result in

Error: Cannot find module 'leaflet' from '/home/yerko/Dev/partes/src' while parsing file: /home/yerko/Dev/partes/src/app.js

So, am I doing it wrong? or should sheetify recognize leaflet css file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions