-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant't resolve fs after updating to 13.0.3 version #304
Labels
Comments
ah right.. missing fs is now resolved. But I get a console error:
Just by including file-type/browser |
Some of the Node modules need to be polyfilled to make file-type work in the browser. Install process:
In import * as process from 'process';
(window as any).process = process; You may need to add buffer as well:
In import * as _buffer from 'buffer';
(window as any).Buffer = _buffer.Buffer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using file-type in an angular app. When running ng serve, I get the following:
ERROR in ./node_modules/strtok3/lib/FsPromise.js
Module not found: Error: Can't resolve 'fs' in /node_modules/strtok3/lib'
With v12 it works
The text was updated successfully, but these errors were encountered: