Skip to content
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

Switch package for checking filetype. #153

Closed

Conversation

cpyle0819
Copy link
Contributor

The previous package, mime-type, was too narrowly focused. The istextorbinary package broadly covers a large list of file extensions.

The previous package, mime-type, was too narrowly focused. The
`istextorbinary` package broadly covers a large list of file extensions.
@cpyle0819
Copy link
Contributor Author

Tests are failing during build of the Next.js app.

../core/lib/content/gitignore_fs.js
Module not found: Default condition should be last one

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
../core/lib/index.js
./src/app/ailly.ts
../node_modules/next/dist/build/webpack/loaders/next-flight-action-entry-loader.js?actions=%5B%5B%22%2FUsers%2Fcorepyle%2FDocuments%2Frepos%2Failly%2Fweb%2Fsrc%2Fapp%2Failly.ts%22%2C%5B%22generateOne%22%5D%5D%5D&__client_imported__=true!

The current working theory is that istextorbinary is being loaded as a Node only module.
https://nextjs.org/docs/messages/module-not-found#the-module-youre-trying-to-import-uses-nodejs-specific-modules

@cpyle0819 cpyle0819 closed this Jun 26, 2024
@cpyle0819 cpyle0819 deleted the corepyle/content-ignore branch June 26, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants