Open MkLHX opened 1 year ago
Thanks for all the logs -- could you try updating to 1.5.1
? 📦
Thanks for providing releases so quickly!
build was executed but with a warning :
warning in ./node_modules/vue-notion/dist/esm.js
Module not found: Error: Can't resolve 'encoding' in '<my_project_path>\node_modules\vue-notion\dist'
and of course Notion page wasn't rendered now.
Hmm, not sure about this one -- Maybe try installing the encoding
npm package (i see it's a peerDep from node-fetch via cross-fetch in the package lockfile).
Might also help to remove node_modules
and (e.g. nuxt) cache and npm install
again.
The issue seems to be from my project because on this project with 1.4.3 or 1.5.1 the Notion page is rendered correctly.
https://github.com/MkLHX/vue_notion_test_project
I'm going to push research about what provides the issue on my side.
Maybe an idea: the historical project was built with vue-cli@4.5 and the test project with vue-cli@5.0.4
node v16.15 vuejs@2.7.14 vue-notion@1.4.4
To find a solution to #121 I try to update vuejs@2.7.14 and use vue-notion@1.4.4
The result is a new error about Module parse.
Each object key looking like
blockMap[id].value.content?.forEach
cannot be parsed because the ? on the key content.When I remove all the ? and fix syntax the module can be parsed and built.
So I don't know what happened with the syntax but vuejs2.7.14 is still not compatible.