Closed huan closed 6 years ago
When using @chatie/graphql in Ionic3, we got this error message.
@chatie/graphql
It seems that export LocalServer in our main index.ts cause this WebPack error, even we never import it.
LocalServer
index.ts
BTW: another related problem is when @chatie/graphql are using pkg-up to find package.json in local directories, the ionic will build without error or warning, but shows a Runtime Error Cannot read property 'prototype' of undefined .
pkg-up
Runtime Error Cannot read property 'prototype' of undefined
add browser: { fs: false, child_process: false } to the package.json would do the trick
browser: { fs: false, child_process: false }
See: https://github.com/asvd/jailed/issues/22
It seems the problem solved.
When using
@chatie/graphql
in Ionic3, we got this error message.It seems that export
LocalServer
in our mainindex.ts
cause this WebPack error, even we never import it.See Also
BTW: another related problem is when
@chatie/graphql
are usingpkg-up
to find package.json in local directories, the ionic will build without error or warning, but shows aRuntime Error Cannot read property 'prototype' of undefined
.