Results 1 to 6 of 6

Thread: failed to `npm run start`

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User jcvetkovic's Avatar
    Join Date
    May 2012
    Location
    Kragujevac, Serbia
    Posts
    23
    Vote Rating
    0
      0  

    Default failed to `npm run start`

    Generated app with ext-gen and tried to run `npm run start`.
    This fails to run any of the commands from scripts. It runs fine when I use `sencha` directly.

    Also Fashion fails and throws error `Fashion is undefined` if I try to run universal modern app. It is OK with apps generated via other templates.

    I am running Ubuntu 16.04.

    Code:
    TypeError: process.stdout.cursorTo is not a function
    at ExtWebpackPlugin.apply (/home/profile/project/node_modules/@sencha/ext-webpack-plugin/lib/index.js:112:24)
    at webpack (/home/profile/project/node_modules/webpack/lib/webpack.js:37:12)
    at startDevServer (/home/profile/project/node_modules/webpack-dev-server/bin/webpack-dev-server.js:379:16)
    at processOptions (/home/profile/project/node_modules/webpack-dev-server/bin/webpack-dev-server.js:361:5)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
    at startup (internal/bootstrap/node.js:279:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:696:3)
    J Cvetkovic @ Emisia

  2. #2
    Ext Team Member
    Join Date
    Sep 2017
    Posts
    727
    Vote Rating
    -343
      -2  

    Default

    Thank you for sending this to us. I will pass this on to the appropriate people!

  3. #3
    Sencha Premium User
    Join Date
    Feb 2010
    Posts
    58
    Vote Rating
    25
      0  

    Default

    Same here.
    In all projects, old and new. They all stop working!!!

  4. #4
    Sencha Premium User
    Join Date
    Feb 2010
    Posts
    58
    Vote Rating
    25
      0  

    Default

    Apparently it depends from where you call it

    cursorTo is undefined when process.stdout is not a tty

    In
    node_modules\@sencha\ext-webpack-plugin\lib\index.js

    on line 22 after all requires add
    Code:
    var readline = require('readline');
    Then replace all
    Code:
    process.stdout.cursorTo(0);
    with
    Code:
    readline.cursorTo(process.stdout, 0);
    and done!

  5. #5
    Sencha User jcvetkovic's Avatar
    Join Date
    May 2012
    Location
    Kragujevac, Serbia
    Posts
    23
    Vote Rating
    0
      0  

    Default

    Worked great, thanks.

    Continuing testing and found more issues.

    1. while running script
    Code:
    build-desktop-production
    it throws error

    Code:
    ext app build desktop production
    Sencha ExtGen v1.0.0 - The Ext JS code generator
    i [ext]: ext-gen: [ERR] {"name":"UNKNOWN_VALUE","value":"production"}
    2. sencha build works but it throws error for Fashion
    Code:
    sencha build production
    Uncaught ReferenceError: Fashion is not defined
        at css-vars.js?_dc=1537962725127:619
    in development Fashion is working fine.

    app.json
    Code:
    "fashion": {
            "missingParameters": "error",
            "inliner": {
                "enable": false
            }
        },
    "css": [
            {
                "path": "${build.out.css.path}",
                "bundle": true,
                "exclude": [
                    "fashion"
                ]
            }
        ]
    J Cvetkovic @ Emisia

  6. #6
    Sencha Premium User
    Join Date
    Feb 2010
    Posts
    58
    Vote Rating
    25
      0  

    Default

    I think there is an error with new 6.6 and fashion, I think new npm uses another method for reloading the page.

    Try

    Code:
    npm start
    or

    Code:
    npm run all
    And then change color or some code, it should rebuild and reload page automatically.

    Also check package.json to see if scripts are correct with your options in app.json.

    The file is autogenerated an uses some default profiles. I had to change the profile to fit my app.json.

    Let me know if that works.

Similar Threads

  1. I failed to start the ExtReact kitchen Sink
    By Mark.Brocato in forum Q&A
    Replies: 0
    Last Post: 10 Jul 2017, 6:00 AM
  2. Replies: 2
    Last Post: 19 May 2017, 9:20 AM
  3. sencha web start - failed to resolve server URL
    By Yimin Rong in forum Ext 5: Q&A
    Replies: 2
    Last Post: 16 Dec 2015, 2:53 PM
  4. [FIXED] Sencha Architect seems failed to start under non-latin user name under Win7 x64.
    By skytrack in forum Sencha Architect 2.x: Bugs
    Replies: 1
    Last Post: 17 Sep 2013, 11:05 AM

Posting Permissions

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