Update to Angular v6 - Module not found: Error: Can't resolve 'fs'

前端 未结 12 2470
栀梦
栀梦 2020-11-30 06:04

I\'m trying to migrate my Angular Universal project from Angular v5 to v6

I\'ve got a service where I use fs to load the translation on the server side.

12条回答
  •  佛祖请我去吃肉
    2020-11-30 06:32

    add below lines in your package.json

    1. "browser": { "fs": false, "os": false, "path": false }

    Click here to see sample image

提交回复
热议问题