Skip to content

Conversation

@woodae99
Copy link

No description provided.

woodae99 and others added 15 commits August 13, 2025 17:53
removing pre-commit hook
…rmatting

Render Kindle metadata in multiline YAML
Fix Amazon.com web scraper by updating selectors
This commit addresses two issues:

1. A `TypeError: (0 , o.default) is not a function` error that occurred during the Amazon sync process. The error was caused by an incorrect ES6 default import of the `fletcher` library, which is a CommonJS module. The import has been changed to use `import = require()` syntax in `src/utils/hash.ts`, and the corresponding type definition in `src/custom.d.ts` has been updated to use `export =`.

2. A webpack warning `export 'default' (reexported as 'scrapeBooks') was not found in './scrapeBooks'`. This was caused by the `scrapeBooks` function not being exported from `src/scraper/scrapeBooks.ts` and being imported as a default module in `src/scraper/index.ts`. The function is now correctly exported and imported as a named module.
Fix TypeError during sync and resolve webpack warning
@woodae99
Copy link
Author

Sorry, this PR was sent in error - disregard

@woodae99 woodae99 closed this Aug 28, 2025
@woodae99 woodae99 deleted the fix/amazon-scraper branch August 28, 2025 09:27
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.

1 participant