Skip to content

simplifyify fails to pick browserify-shim out of package.json #8

Open

Description

@cfv1984

This block:

  "main": "js/src/app/bootstrap.js",
  "browserify": {
    "transform": [
      "browserify-shim"
    ]
  },
  "browserify-shim": {
    "./js/vendor/history.js": "history",
    "./js/vendor/bluebird/js/browser/bluebird.js": "bluebird"
  }

Generates a proper JS when using browserify 13.0.0 , but fails when using simplifyify, with message:

Error reading Browserify transforms for js/src/App/bootstrap.js
Cannot find module 'browserify-shim'
```. What am I doing wrong exactly? 

Activity

  1. JamesMessinger commented on Apr 13, 2016

    @JamesMessinger
    Member

    Do you have browserify-shim installed? Based on the error message, it sounds like it can't find it the node_modules folder.

  2. cfv1984 commented on Apr 13, 2016

    @cfv1984
    Author

    Browserify is picking the shim just fine from what I'm seeing in the result
    JS
    On 13 Apr 2016 14:12, "James Messinger" notifications@github.com wrote:

    Do you have browserify-shim installed? Based on the error message, it
    sounds like it can't find it the node_modules folder.

    —
    You are receiving this because you authored the thread.
    Reply to this email directly or view it on GitHub
    #8 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions