Why is webpack --watch not updating when specific files are updated

后端 未结 4 1704
孤街浪徒
孤街浪徒 2020-12-03 13:48

I have a decent sized webpack application that\'s heavily organized into particular segments. Everything works great with both pure javascript and jsx files, as anytime I u

4条回答
  •  情歌与酒
    2020-12-03 14:29

    I had similar situation but with single file. The problem was that the path of component had letter in different case instead of letters in directory path.

    Directory:

    components/UI/fields/
    

    ERROR: (incorrect case of "F" in "Fields")

    import PrivacyField from 'components/UI/Fields/PrivacyField';
    ...
    

    CORRECT:

    import PrivacyField from 'components/UI/fields/PrivacyField';
    ...
    

提交回复
热议问题