facebook / facebook/flow

Imported less files (using less-loader) not resolving.

Aperta
#4,494 3 commenti 4 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
22.3k
Fork
1.9k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Using flow 0.50.0 with a `.flowconfig` as follows:

```config
[ignore]
/node_modules/stylelint
/build
/notebooks

[options]
module.system.node.resolve_dirname=node_modules
module.system.node.resolve_dirname=src
module.name_mapper.extension='gql' -> 'empty/object'
module.name_mapper.extension='less' -> 'empty/object'
```

When running flow on my project, I am getting errors on any attempted `*.less` import, like:

```shell
src/universal/components/Hamburger/index.js:8
8: import './hamburger.less'
^^^^^^^^^^^^^^^^^^ ./hamburger.less. Required module not found
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.