thgh / vercel-sapper

Vercel builder for Sapper with SSR enabled
MIT License
189 stars 25 forks source link

Possible fix for importing images from node_modules #57

Closed thgh closed 3 years ago

thgh commented 3 years ago

Fix #56 (doesn't work)

domnantas commented 3 years ago

This does not seem to fix the problem. Added

/node_modules
!/src/node_modules

to .vercelignore manually, but still getting Server is not listening Error: Cannot find module 'images/successkid.jpg' error on the function

thgh commented 3 years ago

Indeed, doesn't work for me either.. Probably should add a warning instead.

thgh commented 3 years ago

Alrighty, finally resolved! https://github.com/vercel/vercel/discussions/5539#discussioncomment-292637

Resolve #56 Close #57