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

Now deploy error #26

Closed
yasaricli opened this issue Jun 28, 2018 · 1 comment
Closed

Now deploy error #26

yasaricli opened this issue Jun 28, 2018 · 1 comment

Comments

@yasaricli
Copy link

yasaricli commented Jun 28, 2018

Hello. I get this error when I deploy.

now

'(server) ./static/images/google-plus-icon.svg\nModule build failed: TypeError: csstree.translate is not a function\n

next.config.js

const withSass = require('@zeit/next-sass')
const withImages = require('next-images');
const withOptimizedImages = require('next-optimized-images');
module.exports = withSass(withOptimizedImages());
@cyrilwanner
Copy link
Owner

cyrilwanner commented Jul 2, 2018

Hi @yasaricli

I tried to reproduce this error with the same next.config.js and a sample svg image but it worked without any problem for me.
Can you provide me more details about the error?

  • Is this your whole next.config.js or just a part of it?
  • How do you include the svg file in your project?
  • As I see csstree.translate in the error, do you have a special sass/css setup?

Or maybe you can even provide me a minimalistic repository to reproduce this error.

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

2 participants