Warnings when compiling with webpack
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, webpack
- Ambito
- build-system
Direzione di ricerca
Start by examining the @observablehq/stdlib package.json exports field and the webpack package-exports guidance linked in the issue. Reproduce the build with the described create-react-app setup and check the warnings for the listed src paths. Done means determining whether the exports or webpack interaction causes the warnings, then fixing them or documenting that they are a webpack limitation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When building a project that depends on stdlib using Webpack (e.g. a create-react-app where you've installed the runtime and a notebook), you get 53 warnings in the terminal:
WARNING in ./node_modules/@observablehq/stdlib/src/ lazy ^.*.*$ strict namespace object @observablehq/stdlib/src/arrow.js
Module not found: Error: Package path ./src/arrow.js is not exported from package /Users/tophtucker/Development/obs-test/node_modules/@observablehq/stdlib (see exports field in /Users/tophtucker/Development/obs-test/node_modules/@observablehq/stdlib/package.json)
WARNING in ./node_modules/@observablehq/stdlib/src/ lazy ^.*.*$ strict namespace object @observablehq/stdlib/src/dependencies.js
Module not found: Error: Package path ./src/dependencies.js is not exported from package /Users/tophtucker/Development/obs-test/node_modules/@observablehq/stdlib (see exports field in /Users/tophtucker/Development/obs-test/node_modules/@observablehq/stdlib/package.json)
WARNING in ./node_modules/@observablehq/stdlib/src/ lazy ^.*.*$ strict namespace object @observablehq/stdlib/src/dependency.js
Module not found: Error: Package path ./src/dependency.js is not exported from package /Users/tophtucker/Development/obs-test/node_modules/@observablehq/stdlib (see exports field in /Users/tophtucker/Development/obs-test/node_modules/@observablehq/stdlib/package.json)
…and so on for fifty other paths. I don't know quite what it's saying… is it that we export more than we list in package.json? Does it matter? Cf. https://github.com/webpack/webpack/issues/9509, https://webpack.js.org/guides/package-exports/.
It makes the terminal pretty noisy; a customer was concerned the notebook wasn't working properly because of all the (what looked like) errors. Maybe there's a way to fix that. But if this is just a webpack idiosyncrasy, then we can close; we don't have to be beholden to what they choose to warn about.
- Lingua principale
- JavaScript
- Stelle
- 1k
- Fork
- 87
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di observablehq/stdlib
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
observablehq/stdlib#397 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
observablehq/stdlib#384 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
observablehq/stdlib#379 · 1 commento ·
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
observablehq/stdlib#378 · 2 commenti · 2 reazioni ·
-
issue with DuckDB parsingAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
observablehq/stdlib#371 ·
Tutte le issue di observablehq/stdlib
Issue simili
-
[BUG] Multi-day events show "Ended" while still in progressForse già presa @tarunagnihotri534 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
data-umbrella/du-event-board#231 · 2 commenti ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
NaturalIntelligence/fast-xml-parser#888 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
USACE/chart-docs#766 ·
-
bug callouts regression revealjs
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
quarto-dev/quarto-cli#15014 ·
I maintainer di solito rispondono entro 1 giorno