Results 1 to 3 of 3

Thread: [@extjs/reactor-webpack-plugin]: Error: ENOTEMPTY: directory ... ext-react

  1. #1

    Join Date
    Jul 2008
    Location
    Seattle
    Posts
    11

    Default [@extjs/reactor-webpack-plugin]: Error: ENOTEMPTY: directory ... ext-react

    Using trial version of ExtReact on new windows 10 machine. Used Getting Started "If you prefer to use create-react-app, see Adding ExtReact to Apps Built With create-react-app" method. Worked the first time, but when I shutdown the the server and then restarted it, I was getting the following error:

    [@extjs/reactor-webpack-plugin]: Error: ENOTEMPTY: directory not empty, rmdir 'C:\Users\joe\Desktop\UI\ExtR\merchant-assistant\build\ext-react\resources\ext\ext-watermark'


    I believe that the build script fails when doing a recursive rmdir on /build/ext-react ... and thus the error. If I remove the ext-react dir manually and restart it works once again, until I restart the server again. Is there an update to remedy this.

    One note, when following the instructions in the Adding ExtReact to Apps Built With create-react-app, it ask you to add into webpack.config.dev.js & webpack.config.prod.js underneath plugin: a few lines of code. The problem is their are 3 occurances of plugin in each file, so I guessed and made it the last plugin: in that it was the highest one in the json structure. Is that correct?

  2. #2
    Sencha User Mark.Brocato's Avatar
    Join Date
    Mar 2015
    Location
    Maryland
    Posts
    482
    Answers
    114

    Default

    Yes, you are correct. ExtReactWebpackPlugin should be added to the top-level plugins array. This diff can help clear up any ambiguities: https://github.com/sencha/ext-react-...with-ext-react

    As for the ENOTEMPTY error. I haven't seen that before. Seems like another case of Windows overzealously locking files. Perhaps it has something to do with the way that you're killing the server? Do you get the same problem if you use yeoman and @extjs/generator-ext-react to create an app. It would be nice to know if the problem is specific to ejecting from cra.

  3. #3

    Join Date
    Jul 2008
    Location
    Seattle
    Posts
    11

    Default

    When I used the yo approach in getting started, npm start and (re)start works just fine. I don't get that build error. I would like to continue to use the CRA approach, so a build patch would be appreciated.

Similar Threads

  1. Replies: 5
    Last Post: 21 Sep 2017, 6:42 PM
  2. Replies: 9
    Last Post: 16 Jun 2017, 7:54 AM
  3. Reactor Webpack & TypeScript
    By jsheely in forum Q&A
    Replies: 9
    Last Post: 31 May 2017, 11:45 AM
  4. Replies: 0
    Last Post: 26 May 2017, 8:36 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •