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

Getting "path must be a string or Buffer" error on Ubuntu #25

Closed
aviramga opened this issue Oct 12, 2017 · 2 comments
Closed

Getting "path must be a string or Buffer" error on Ubuntu #25

aviramga opened this issue Oct 12, 2017 · 2 comments

Comments

@aviramga
Copy link

Hi,

Im getting the following error when trying to build my nextjs app with the inline svg plugin:
"Module build failed: TypeError: /var/www/path/path/path/component.js: path must be a string or Buffer"

When I try the same thing in a Mac everything works fine.... only under Ubuntu do I get this error.

Any ideas?

Thanks!

@kesne
Copy link
Collaborator

kesne commented Nov 6, 2017

Maybe a case sensitive thing? Try adding caseSensitive to the options to sanity-check that.

@aviramga aviramga closed this as completed Nov 9, 2017
@justinmc
Copy link

I'm getting the same problem and I'm on OSX. It started showing up when trying to change the path of one of the SVGs I'm using. I'm also seeing really weird caching issues, like editing the SVG files and not seeing them update in my bundle...

The caseSensitive option didn't work for me. I think this issue should be reopened.

vieira added a commit to vieira/babel-plugin-inline-react-svg that referenced this issue Aug 30, 2024
Drop defaultProps from the generated component as they are now
deprecated and will be removed in React 19.

They were added in airbnb#8 due to concerns about the overhead of `_extends`
although no benchmarks were provided and it is likely that difference
would be marginal where it matters.

Fixes: airbnb#25
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