Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-532

[javascript] The browserify command ignores locally installed files

    XMLWordPrintable

Details

    • Hide
      In previous releases of the AMQ JavaScript Client, the `browserify` script did not include local file names in its path. As a result, you could not run the script without NPM (node package manager) installing all of your code.
      In the Clients 1.2.0 release, the current directory is now included in the Node.js path and the `browserify` script uses code from modules in the current directory.
      Show
      In previous releases of the AMQ JavaScript Client, the `browserify` script did not include local file names in its path. As a result, you could not run the script without NPM (node package manager) installing all of your code. In the Clients 1.2.0 release, the current directory is now included in the Node.js path and the `browserify` script uses code from modules in the current directory.
    • Documented as Resolved Issue
      1. git clone https://github.com/grs/rhea.git
      2. cd rhea
      3. npm install
      4. npm run-script browserify

    Description

      npm run-script browserify throws error when rhea is not installed in node_modules, problem is in browserify command in package.json, it tries to find installed rhea packages. So for fixing this issue we have to update browserify command to work with local files.

      Error: Cannot find module 'rhea' from '/root/rhea'
          at /root/rhea/node_modules/browser-resolve/node_modules/resolve/lib/async.js:46:17
          at process (/root/rhea/node_modules/browser-resolve/node_modules/resolve/lib/async.js:173:43)
          at ondir (/root/rhea/node_modules/browser-resolve/node_modules/resolve/lib/async.js:188:17)
          at load (/root/rhea/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
          at onex (/root/rhea/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
          at /root/rhea/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
          at FSReqWrap.oncomplete (fs.js:123:15)
      

      Attachments

        Activity

          People

            gordonsim Gordon Sim
            dkornel@redhat.com David Kornel
            David Kornel David Kornel
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: