Results 1 to 3 of 3

Thread: Brunch - config.server.port: expected: number, got: string (3000)

  1. #1
    Join Date
    May 2007
    Location
    San Francisco, California
    Beans
    5,857
    Distro
    Ubuntu Development Release

    Brunch - config.server.port: expected: number, got: string (3000)

    I'm trying to run a test-run with Brunch using Nitrous as the container for dependencies, I'm using the node package manager to install it via

    Code:
    npm install -g brunch
    My brunch-config.js looks good, here's the content of my brunch-config file, I opted for JavaScript instead of CoffeeScript

    Code:
     module.exports = {
      files: {
        javascripts: {joinTo: 'app.js'},
        stylesheets: {joinTo: 'app.css'},
      },
    
      server: {
       hostname: '0.0.0.0',
       port: '3000'
      }
    };
    So I want to run the application on port 3000 obviously, but when I run

    Code:
    brunch build
    I get the following error output

    Code:
    01 Jul 05:56:40 - error: config.server.port: expected: number, got: string (3000)
    01 Jul 05:56:40 - error: Initialization error -  config is not valid
    Stack trace was suppressed. Run with `LOGGY_STACKS=true` to see the trace.
    This is also true when I run

    Code:
    brunch build --production
    I have browsed around GitHub, the official documentation for Brunch - but yet to find a solution, this isn't a container issue either (I thought it might be) but tried to run it on a local machine - same thing. Any support would be highly appreciated.

  2. #2
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,529
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Brunch - config.server.port: expected: number, got: string (3000)

    I would try removing the quotes from around '3000'.

  3. #3
    Join Date
    May 2007
    Location
    San Francisco, California
    Beans
    5,857
    Distro
    Ubuntu Development Release

    Re: Brunch - config.server.port: expected: number, got: string (3000)

    Yeah, I did that same error, ended up fixing it switching to an older version of brunch - thanks for the input!

Tags for this Thread

Bookmarks

Posting Permissions

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