Field 'browser' doesn't contain a valid alias configuration

后端 未结 16 2310
无人共我
无人共我 2020-12-01 11:54

I\'ve started using webpack2 (to be precise, v2.3.2) and after re-creating my config I keep running into an issue I can\'t seem to solve I get (sorry in advance

16条回答
  •  时光取名叫无心
    2020-12-01 12:18

    My case was rather embarrassing: I added a typescript binding for a JS library without adding the library itself.

    So if you do:

    npm install --save @types/lucene
    

    Don't forget to do:

    npm install --save lucene
    

    Kinda obvious, but I just totally forgot and that cost me quite some time.

提交回复
热议问题