Results 1 to 10 of 10

Thread: Cannot start reactor-modern-boilerplate even with [email protected]

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Nov 2015
    Location
    Paris
    Posts
    36

    Default Cannot start reactor-modern-boilerplate even with [email protected]

    Windows 10 64 bits
    Ext 6.5.1

    Code:
    MINGW64 /c/node-projects/extjs-reactor/packages/reactor-modern-boilerplate (master)
    $ npm ls -depth=0
    @extjs/[email protected] C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate
    +-- @extjs/[email protected]
    +-- @extjs/[email protected]
    +-- @extjs/[email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    `-- [email protected]

    Code:
     MINGW64 /c/node-projects/extjs-reactor/packages/reactor-modern-boilerplate (master)
    $ npm start
    
    
    > @extjs/[email protected] start C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate
    > webpack-dev-server --progress --colors
    
    
     10% building modules 1/1 modules 0 active
    Project is running at http://localhost:8086/
    webpack output is served from /
    Content not from webpack is served from ./build
    404s will fallback to /index.html                                                                                                    94% asset optimization                   building ExtReact bundle: ext => C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate\build\ext-react
    module.js:320
      var reqLen = request.length;
                          ^
    
    
    TypeError: Cannot read property 'length' of undefined
        at Function.Module._resolveLookupPaths (module.js:320:23)
        at Function.Module._resolveFilename (module.js:461:31)
        at Function.resolve (internal/module.js:27:19)
        at Object.<anonymous> (C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate\node_modules\@extjs\reactor-webpack-plugin\node_modules\@extjs\sencha-cmd\bin\sencha:14:17)
        at Module._compile (module.js:571:32)
        at Object.Module._extensions..js (module.js:580:10)
        at Module.load (module.js:488:32)
        at tryModuleLoad (module.js:447:12)
        at Function.Module._load (module.js:439:3)
        at Module.runMain (module.js:605:10)                                                                                                               Time: 4523ms
         Asset       Size  Chunks                    Chunk Names
     bundle.js    1.91 MB       0  [emitted]  [big]  main
    index.html  461 bytes          [emitted]
    webpack: Compiled successfully.

  2. #2
    Sencha - Engineering israelroldan's Avatar
    Join Date
    Nov 2011
    Location
    The Netherlands
    Posts
    395

    Default

    Is it possible that MINGW64 is reporting the OS in Node as 'linux'? We identified an issue during the weekend with the sencha-cmd-linux wrapper, which had this exact error message. I think something like this may be happening since I can't reproduce this error when using the regular windows command prompt.

    You may benefit from testing the 6.5.2-11 prerelease of Sencha Cmd, which you can do like this:
    - If you ran "npm install" at the root of "extjs-reactor" (monorepo mode): run npm install @extjs/[email protected] from the packages/reactor-webpack-plugin directory, then run npm start again in the modern boilerplate.
    - If you just ran "npm install" in the boilerplate directory directly then run npm install @extjs/[email protected] in the boilerplate directory, then npm start again
    Israel Roldán | Senior Software Engineer (Framework tools)

  3. #3
    Sencha User
    Join Date
    Nov 2015
    Location
    Paris
    Posts
    36

    Default

    Quote Originally Posted by israelroldan View Post
    Is it possible that MINGW64 is reporting the OS in Node as 'linux'? We identified an issue during the weekend with the sencha-cmd-linux wrapper, which had this exact error message. I think something like this may be happening since I can't reproduce this error when using the regular windows command prompt.

    You may benefit from testing the 6.5.2-11 prerelease of Sencha Cmd, which you can do like this:
    - If you ran "npm install" at the root of "extjs-reactor" (monorepo mode): run npm install @extjs/[email protected] from the packages/reactor-webpack-plugin directory, then run npm start again in the modern boilerplate.
    - If you just ran "npm install" in the boilerplate directory directly then run npm install @extjs/[email protected] in the boilerplate directory, then npm start again
    Unfortunately, the issue is the same when using windows command shell and after have installed [email protected] :

    Code:
    C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate>
    
    
    C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate>npm ls -depth=0
    @extjs/[email protected] C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate
    +-- @extjs/[email protected]
    +-- @extjs/[email protected]
    +-- @extjs/[email protected]
    +-- @extjs/[email protected] extraneous
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    +-- [email protected]
    `-- [email protected]
    Code:
    C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate>npm start
    
    
    > @extjs/[email protected] start C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate
    > webpack-dev-server --progress --colors
    
    
     10% building modules 1/1 modules 0 active
    Project is running at http://localhost:8086/
    webpack output is served from /
    Content not from webpack is served from ./build
    404s will fallback to /index.html                                                                             94% asset optimization
    building ExtReact bundle: ext => C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate\build\ext-react
    module.js:320
      var reqLen = request.length;
                          ^
    
    
    TypeError: Cannot read property 'length' of undefined
        at Function.Module._resolveLookupPaths (module.js:320:23)
        at Function.Module._resolveFilename (module.js:461:31)
        at Function.resolve (internal/module.js:27:19)
        at Object.<anonymous> (C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate\node_modules\@extjs\reactor-webpack-plugin\node_modules\@extjs\sencha-cmd\bin\sencha:14:17)
        at Module._compile (module.js:571:32)
        at Object.Module._extensions..js (module.js:580:10)
        at Module.load (module.js:488:32)
        at tryModuleLoad (module.js:447:12)
        at Function.Module._load (module.js:439:3)
        at Module.runMain (module.js:605:10)                                                                                        Time: 5392ms
         Asset       Size  Chunks                    Chunk Names
     bundle.js    1.91 MB       0  [emitted]  [big]  main
    index.html  461 bytes          [emitted]
    webpack: Compiled successfully.

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

    Default

    Can you post the contents of C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate\node_modules\@extjs\reactor-webpack-plugin\node_modules\@extjs\sencha-cmd\package.json?

  5. #5
    Sencha User
    Join Date
    Nov 2015
    Location
    Paris
    Posts
    36

    Default

    Quote Originally Posted by Mark.Brocato View Post
    Can you post the contents of C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate\node_modules\@extjs\reactor-webpack-plugin\node_modules\@extjs\sencha-cmd\package.json?
    C:\node-projects\extjs-reactor\packages\reactor-modern-boilerplate\node_modules\@extjs\reactor-webpack-plugin\node_modules\@extjs\sencha-cmd\package.json

    Code:
    {
      "_args": [
        [
          {
            "raw": "@extjs/[email protected]",
            "scope": "@extjs",
            "escapedName": "@extjs%2fsencha-cmd",
            "name": "@extjs/sencha-cmd",
            "rawSpec": "6.5.1",
            "spec": "6.5.1",
            "type": "version"
          },
          "C:\\node-projects\\extjs-reactor\\packages\\reactor-modern-boilerplate\\node_modules\\@extjs\\reactor-webpack-plugin"
        ]
      ],
      "_from": "@extjs/[email protected]",
      "_id": "@extjs/[email protected]",
      "_inCache": true,
      "_location": "/@extjs/reactor-webpack-plugin/@extjs/sencha-cmd",
      "_nodeVersion": "6.1.0",
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/sencha-cmd-6.5.1.tgz_1495799524316_0.48956940323114395"
      },
      "_npmUser": {
        "name": "senchabot",
        "email": "[email protected]"
      },
      "_npmVersion": "3.8.6",
      "_phantomChildren": {},
      "_requested": {
        "raw": "@extjs/[email protected]",
        "scope": "@extjs",
        "escapedName": "@extjs%2fsencha-cmd",
        "name": "@extjs/sencha-cmd",
        "rawSpec": "6.5.1",
        "spec": "6.5.1",
        "type": "version"
      },
      "_requiredBy": [
        "/@extjs/reactor-webpack-plugin"
      ],
      "_resolved": "https://registry.npmjs.org/@extjs/sencha-cmd/-/sencha-cmd-6.5.1.tgz",
      "_shasum": "08bef517b36a0b33fb71992e7500533562a35d30",
      "_shrinkwrap": null,
      "_spec": "@extjs/[email protected]",
      "_where": "C:\\node-projects\\extjs-reactor\\packages\\reactor-modern-boilerplate\\node_modules\\@extjs\\reactor-webpack-plugin",
      "author": {
        "name": "Sencha, Inc."
      },
      "bin": {
        "sencha": "bin/sencha"
      },
      "bugs": {
        "url": "https://www.sencha.com/forum/forumdisplay.php?8-Sencha-Cmd"
      },
      "dependencies": {
        "which": "^1.2.12"
      },
      "description": "Productivity and performance optimization tool for building applications with Sencha Ext JS and Sencha Touch.",
      "devDependencies": {},
      "directories": {},
      "dist": {
        "shasum": "08bef517b36a0b33fb71992e7500533562a35d30",
        "tarball": "https://registry.npmjs.org/@extjs/sencha-cmd/-/sencha-cmd-6.5.1.tgz"
      },
      "files": [
        ".npmignore",
        "LICENSE.md",
        "README.md",
        "bin/sencha",
        "platform-install.js",
        "index.js"
      ],
      "homepage": "https://www.sencha.com/products/sencha-cmd/",
      "keywords": [
        "sencha",
        "senchacmd",
        "sencha-cmd",
        "sencha command",
        "extjs",
        "ext js",
        "ext-js",
        "sencha touch",
        "senchatouch",
        "ext",
        "touch",
        "cmd",
        "command",
        "cli"
      ],
      "license": "SEE LICENSE IN LICENSE.md",
      "maintainers": [
        {
          "name": "senchabot",
          "email": "[email protected]"
        },
        {
          "name": "sencha-mark",
          "email": "[email protected]"
        },
        {
          "name": "israelroldan",
          "email": "[email protected]"
        },
        {
          "name": "sencha-don",
          "email": "[email protected]"
        }
      ],
      "name": "@extjs/sencha-cmd",
      "optionalDependencies": {},
      "readme": "ERROR: No README data found!",
      "scripts": {
        "install": "node platform-install.js"
      },
      "version": "6.5.1",
      "version_full": "6.5.0.180"
    }

  6. #6
    Sencha User
    Join Date
    Nov 2015
    Location
    Paris
    Posts
    36

    Default

    With last version ext-reactor 1.0.1, after have deleted node_modules and
    Code:
    npm install
    , it now runs perfectly .

    Thank you for your help.

  7. #7

    Default

    I am seeing the same error


    building ExtReact bundle: ext => /home/john/svn/UI_Prototype/Frontend/send-my-love-extjs/build/ext-react
    module.js:320
    var reqLen = request.length;


    I tried the sugestions mentioned here, without luck.


    {
    "name": "@extjs/reactor-boilerplate",
    "private": true,
    "version": "1.0.0",
    "description": "A foundation for React apps built with ExtReact components.",
    "main": "index.js",
    "scripts": {
    "clean": "rimraf build",
    "start": "webpack-dev-server --progress --colors",
    "build": "npm run clean && cross-env NODE_ENV=production webpack --env.prod=true --progress --colors",
    "prod": "cross-env NODE_ENV=production webpack-dev-server --env.prod=true --progress --colors"
    },
    "author": "Sencha, Inc.",
    "repository": {
    "type": "git",
    "url": "git+https://github.com/sencha/extjs-reactor.git"
    },
    "license": "MIT",
    "dependencies": {
    "@extjs/ext-react": "^6.5.0",
    "@extjs/reactor": "^1.0.2",
    "babel-polyfill": "^6.23.0",
    "babel-runtime": "^6.23.0",
    "prop-types": "^15.5.10",
    "react": "^15.5.4",
    "react-dom": "^15.5.4",
    "react-redux": "^5.0.5",
    "react-router-dom": "^4.1.1",
    "redux": "^3.6.0",
    "redux-thunk": "^2.2.0"
    },
    "devDependencies": {
    "@extjs/reactor-babel-plugin": "^1.0.0",
    "@extjs/reactor-webpack-plugin": "^1.0.2",
    "babel-core": "^6.17.0",
    "babel-loader": "^7.0.0",
    "babel-plugin-transform-runtime": "^6.23.0",
    "babel-preset-es2015": "^6.14.0",
    "babel-preset-react": "^6.11.1",
    "babel-preset-stage-2": "^6.13.0",
    "cross-env": "^5.0.0",
    "html-webpack-plugin": "^2.24.1",
    "rimraf": "^2.6.1",
    "webpack": "^2.5.1",
    "webpack-dev-server": "^2.4.1"
    }
    }

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

    Default

    Have you tried the latest prereleases of reactor-webpack-plugin and sencha-cmd? To install them run,

    Code:
    npm i --save-dev @extjs/[email protected] @extjs/[email protected]

  9. #9

    Default

    Pls anyone share the easiest and simple solution for that. Unable to understand this.

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

    Default

    alanbruce, can you post the error you're seeing and what OS you're using? At this point I am able run the boilerplates just fine with a fresh install of the latest stable release of reactor.

Similar Threads

  1. Replies: 2
    Last Post: 18 Sep 2017, 9:16 AM
  2. Reactor Webpack & TypeScript
    By jsheely in forum Q&A
    Replies: 9
    Last Post: 31 May 2017, 11:45 AM
  3. Replies: 0
    Last Post: 26 May 2017, 8:36 AM
  4. [FIXED] Cannot start reactor-classic-boilerplate
    By ZVONDIC in forum Bugs
    Replies: 5
    Last Post: 24 May 2017, 1:03 AM
  5. [CLOSED] Cannot get reactor-boilerplate started
    By dkelly in forum Bugs
    Replies: 2
    Last Post: 18 May 2017, 1:17 PM

Posting Permissions

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