browserify / browserify/wzrd.in

Flagrant system error loading a simple object

Open
#174 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
637
Forks
79
PR merge metrics
No merged PRs in 30d

Description

I have no problem loading https://wzrd.in/standalone/stylelint-config-standard@latest, which contains a `module.export` of a simple object.

But when I try to load a similarly simple object file https://wzrd.in/standalone/stylelint-config-recommended@latest, I get the flagrant system error shared below.

Both files have a similar structure:

* https://github.com/stylelint/stylelint-config-standard/blob/master/index.js
* https://github.com/stylelint/stylelint-config-recommended/blob/master/index.js

Oddly, when I load the same files through unpkg, the file structure is different in that the "stylelint-config-standard" doesn't include the `"use strict"` at the beginning of the file, but the "stylelint-config-recommended" file does include it.

* https://unpkg.com/stylelint-config-standard@1.0.0
* https://unpkg.com/stylelint-config-recommended@1.0.0

```
---FLAGRANT SYSTEM ERROR---

(logs uuid: 8d4bacb0-8d26-11e7-a26f-7bddb205e2dc )

Error: "npm exited with code 1"

code: 1
stdout:
stderr: npm ERR! Linux 3.8.0-19-generic
npm ERR! argv "/usr/bin/nodejs" "/home/admin/browserify-cdn/node_modules/.bin/npm" "install" "--production" "--registry" "http://registry.npmjs.org/"
npm ERR! node v4.5.0
npm ERR! npm v2.15.11

npm ERR! Cannot read property 'stylelint' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!

npm ERR! Please include the following file with any support request:
npm ERR! /tmp/stylelint-config-recommended117730-3766-marigy/node_modules/stylelint-config-recommended/npm-debug.log

dirPath: /tmp/stylelint-config-recommended117730-3766-marigy

This is probably an issue with the package, and not browserify-cdn itself.
If you feel differently, feel free to file a bug report at:

https://github.com/jfhbrook/browserify-cdn/issues

Include the ENTIRETY of the contents of this message, and the maintainer(s)
can try to help you out.

Have a nice day!
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure using the wzrd.in URLs and compare the linked index.js files for stylelint-config-standard and stylelint-config-recommended. Start with the reported npm install output; done means the recommended package loads successfully through wzrd.in without the flagrant system error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.