New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't require with browserify #100

Closed
anaumidis opened this Issue Sep 17, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@anaumidis

anaumidis commented Sep 17, 2015

When I try to require it like this:
var Nested = require("nestedtypes");

Browserify throws this error:
>> Error: Cannot find module 'nestedtypes' from '/[PathToSourceDirectory]'

When I try to require it like this:
var Nested = require("backbone.nested-types");

Browserify throws this error:
>> Error: Cannot find module './object+' from '/node_modules/backbone.nested-types'
or
>> Error: Cannot find module './backbone+' from '/node_modules/backbone.nested-types'

@gaperton

This comment has been minimized.

Member

gaperton commented Sep 17, 2015

You install it with npm. correct?

@anaumidis

This comment has been minimized.

anaumidis commented Sep 17, 2015

Yes.

I try it with npm + browserify and with bower + debowerify + browserify.

The same issue in every case.

@nburwell

This comment has been minimized.

nburwell commented Oct 11, 2015

I'm seeing the same thing. Using npm / browserify:

npm install backbone.nested-types --save-dev

Then in code I have this per the readme:

var Nested = require('nestedtypes');

Result:

Error: Cannot find module 'nestedtypes' from <src file>
@gaperton

This comment has been minimized.

Member

gaperton commented Oct 22, 2015

Will fix it in a few days. Next version is almost ready to deploy.

@gaperton

This comment has been minimized.

Member

gaperton commented Oct 23, 2015

Should be fixed. Try to install with:

npm install nestedtypes

Reopen if problem will persist.

@gaperton gaperton closed this Oct 23, 2015

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