Skip to content
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
achinaou opened this issue Sep 17, 2015 · 5 comments
Closed

Can't require with browserify #100

achinaou opened this issue Sep 17, 2015 · 5 comments

Comments

@achinaou
Copy link

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
Copy link

You install it with npm. correct?

@achinaou
Copy link
Author

Yes.

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

The same issue in every case.

@nburwell
Copy link

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
Copy link

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

@gaperton
Copy link

Should be fixed. Try to install with:

npm install nestedtypes

Reopen if problem will persist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants