Cannot build project - Error: Can't resolve 'fs'.

I have imported `@vtex/api` and below error occurs. Could you help me figure out where is a problem?

info: [react@2] Step checkEntrypointChanges finished in 0s 0ms vtex.builder-hub@0.39.5

info: [react@2] Step findLocales finished in 0s 2ms vtex.builder-hub@0.39.5

error: Webpack for react@2.x builder finished in 934ms with errors:

Module build error: /usr/local/app/service/node_modules/@vtex/api/node_modules/archiver/lib/core.js

Error: Can't resolve 'fs' in '/usr/local/app/service/node_modules/@vtex/api/node_modules/archiver/lib'

Module build error: /usr/local/app/service/node_modules/chownr/chownr.js

Error: Can't resolve 'fs' in '/usr/local/app/service/node_modules/chownr'

Module build error: /usr/local/app/service/node_modules/fs.realpath/index.js

Error: Can't resolve 'fs' in '/usr/local/app/service/node_modules/fs.realpath'

Module build error: /usr/local/app/service/node_modules/fs.realpath/old.js

Error: Can't resolve 'fs' in '/usr/local/app/service/node_modules/fs.realpath'

Right now, I have create a package.json file in node directory and put there:

{

"dependencies": {

"@vtex/api": "^1.0.0"

}

}

In the same directory I have create a vbase.js file and trying to load VBase Component using this line:

import { VBase } from '@vtex/api'

but below error occurs:

Error: Can't resolve '@vtex/api/VBase' in '/usr/local/app/service/.../src/node' vtex.builder-hub@0.39.5