ajmalafif / typeface-inter

An npm package for distributing the Inter font family created by Rasmus Andersson
https://www.npmjs.com/package/typeface-inter
Other
33 stars 4 forks source link

Webpack can't resolve #3

Closed AlexVipond closed 4 years ago

AlexVipond commented 5 years ago

I'm getting an error when webpack tries to resolve Inter (web) as Inter%20(web):

ModuleNotFoundError: Module not found: Error: Can't resolve '../../node_modules/typeface-inter/Inter%20(web)/Inter-Black.woff' in '/opt/build/repo/assets/css'

It works if I go into node_modules and manually change inter.css to import from Inter-web, and I change the folder name to Inter-web.

Is this just a webpack config thing?

ajmalafif commented 5 years ago

Hi @AlexVipond,

Thanks for reporting this. I have no clue how to fix this as I'm using it for my specific use case. More than happy to accept suggestions on how to fix this while not breaking current flow.

AlexVipond commented 5 years ago

@ajmalafif I found a similar issue reported on philipbelesky's repo, so I'll try and pursue there. If I find any webpack config solution, I can post here too.