Skip to content

?? Cannot read property 'toObject' of null #5

@HaveF

Description

@HaveF

Do I miss something?

Here is my test repo, HaveF/bundle_pack_experiments

package.json script:

    "start": "node --harmony main.js",
    "pack": "browserify main.js -o bundle.js",
    "unpack": "browserifyunpack -v -f bundle.js -o unbundled/"

super easy main.js come from browserify website and do a little modification. main.js bundle.js

yarn run unpack result:

$ browserifyunpack -v -f bundle.js -o unbundled/

BrowserifyUnpack parsed options: {
	"filepath": "/Users/HaveF/Desktop/newTech/bundle_pack_experiments/bundle.js",
	"name": "_bundle.js_",
	"bVerbose": true,
	"bMap": false,
	"bSourceMap": false,
	"withNode": false,
	"loaderUrl": "_bundle.js_/loader.js",
	"output": "/Users/HaveF/Desktop/newTech/bundle_pack_experiments/unbundled",
	"nodeDir": "/Users/HaveF/Desktop/newTech/bundle_pack_experiments/node_modules",
	"sourceDir": "/Users/HaveF/Desktop/newTech/bundle_pack_experiments/",
	"rootDir": "/Users/HaveF/Desktop/newTech/bundle_pack_experiments/",
	"entryFile": null,
	"relativizeOutputPath": false
}
Reading file '/Users/HaveF/Desktop/newTech/bundle_pack_experiments/bundle.js' src: null...
Reading source map...
Could not load source map, check source file
Error: Cannot read property 'toObject' of null
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions