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

Missing dependency #6

Closed
ninja- opened this issue Dec 23, 2015 · 7 comments
Closed

Missing dependency #6

ninja- opened this issue Dec 23, 2015 · 7 comments

Comments

@ninja-
Copy link

ninja- commented Dec 23, 2015

Hey. Really nice work on packaging bootstrap for webpack.
README doesn't mention that file-loader package is needed, otherwise it won't work.

Other than that, I am having some weird problem?

ERROR in Loader [...]/node_modules/url/url.js?limit=10000 didn't return a function
 @ ./~/css-loader!./~/resolve-url-loader!./~/sass-loader?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js!./~/bootstrap-loader/no-op.js 6:4358-4444

ERROR in Loader [...]/node_modules/url/url.js?limit=10000 didn't return a function
 @ ./~/css-loader!./~/resolve-url-loader!./~/sass-loader?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js!./~/bootstrap-loader/no-op.js 6:4477-4562

ERROR in Loader [...]/node_modules/url/url.js?limit=10000 didn't return a function
 @ ./~/css-loader!./~/resolve-url-loader!./~/sass-loader?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js!./~/bootstrap-loader/no-op.js 6:4714-4798
@ninja-
Copy link
Author

ninja- commented Dec 23, 2015

Nevermind, I missed that part of the README.
EDIT: hm, still having the problem after installing all these loaders.

@ninja- ninja- closed this as completed Dec 23, 2015
@ninja- ninja- reopened this Dec 23, 2015
@ninja-
Copy link
Author

ninja- commented Dec 23, 2015

Interesting...it now works after using .bootstraprc with bootstrapVersion: 3 - wasn't that a default anyway?

@ninja-
Copy link
Author

ninja- commented Dec 23, 2015

The problem was using 'url' instead of 'url-loader' and wrong node module was used. bootstrap-loader works great now!

@ninja- ninja- closed this as completed Dec 23, 2015
@jbri7357
Copy link

I'm having trouble understanding what you did exactly to get past this issue. Are you saying the dependency instructions from the website are incorrect? Could you provide a relevant example from your "webpack.config.js" file?

@justin808
Copy link
Member

@ninja- Can you share your fix with @jbri7357. Thanks!

@ninja-
Copy link
Author

ninja- commented Dec 29, 2015

I think that's the case @jbri7357

module: {
  loaders: [
    { test: /\.(woff2?|svg)$/, loader: 'url?limit=10000' },
    { test: /\.(ttf|eot)$/, loader: 'file' },
  ],
},

the 'url' package is maybe used in other part of my project?

my setup:

      { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=100000000000" },
      { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000000000" },

{ test: /bootstrap-sass\/assets\/javascripts\//, loader: 'imports?jQuery=jquery' },

/* Inling images */
      { test: /\.png$/, loader: "url-loader?limit=100000000" },
      { test: /\.jpg$/, loader: "url-loader?limit=100000000" }

@ralyodio
Copy link

live saver @ninja- !!!

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

4 participants