PDA

View Full Version : Cannot start reactor-modern-boilerplate even with [email protected]



arnaud.benhamdine
28 May 2017, 1:42 AM
Windows 10 64 bits
Ext 6.5.1


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]




MINGW64 /c/node-projects/extjs-reactor/packages/reactor-modern-boilerplate (master)
$ npm start


> @extjs/react-modern-bo[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.

israelroldan
30 May 2017, 7:28 AM
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

arnaud.benhamdine
31 May 2017, 3:28 AM
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] :


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]



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.

Mark.Brocato
31 May 2017, 6:48 AM
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?

arnaud.benhamdine
31 May 2017, 9:03 AM
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


{
"_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"
}

arnaud.benhamdine
7 Jun 2017, 9:38 AM
With last version ext-reactor 1.0.1, after have deleted node_modules and
npm install, it now runs perfectly :).

Thank you for your help.

John Ottford
11 Jun 2017, 12:27 PM
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"
}
}

Mark.Brocato
12 Jun 2017, 7:07 AM
Have you tried the latest prereleases of reactor-webpack-plugin and sencha-cmd? To install them run,



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

alanbruce
16 Jun 2017, 12:50 AM
Pls anyone share the easiest and simple solution for that. Unable to understand this.

Mark.Brocato
16 Jun 2017, 7:54 AM
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.