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

TypeError: this.cacheable is not a function #184

Closed
More4ever opened this issue Aug 30, 2017 · 3 comments
Closed

TypeError: this.cacheable is not a function #184

More4ever opened this issue Aug 30, 2017 · 3 comments
Labels

Comments

@More4ever
Copy link

Hello

I've received an error on startup

TypeError: this.cacheable is not a function
    at new loader (node_modules/svg-sprite-loader/lib/loader.js:14:8)

Node: 8.3
npm: 5.3
Webpack: 3.4
OS: MacOS Sierra
Use with: Laravel Mix

Config:

mix.webpackConfig({
  module: {
    rules: [
      {
        test: /\.svg$/,
        loader: 'svg-sprite-loader',
        include: './resources/assets/img',
        options: {
          extract: true,
          spriteFilename: 'icons-sprite.svg'
        }
      }
    ],
  },
  plugins: [
    new webpack.ProvidePlugin({
      jQuery: 'jquery',
      jquery: 'jquery',
      $: 'jquery',
      'Popper': ['popper.js', 'default']
    }),
    new SpritePlugin(),
  ]
});

Stacktrace

TypeError: this.cacheable is not a function
    at new loader (node_modules/svg-sprite-loader/lib/loader.js:14:8)
    at Object.<anonymous> (webpack.mix.js:44:5)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/apple/projects/pdfio.dev/node_modules/laravel-mix/setup/webpack.config.js:9:1)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Module.require (module.js:517:17)
@ghost
Copy link

ghost commented Oct 16, 2017

Is there any update to this? I'm having the same issue.

@kisenka kisenka added the bug label Oct 16, 2017
@kisenka
Copy link
Contributor

kisenka commented Oct 16, 2017

@girwin575 sorry for the delay, just published svg-sprite-loader@3.3.1 with fix.

@ghost
Copy link

ghost commented Oct 16, 2017

Thanks @kisenka will take a look!

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

No branches or pull requests

2 participants