Closed andymitrich closed 2 years ago
Well, I've tried to compile vue-notion from sources and it works. So, I suppose that I haven't any necessary package in my fresh vuejs installation.
I've added @babel/plugin-proposal-nullish-coalescing-operator
into babel.config, but still doesn't work:
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
plugins: [
'@babel/plugin-proposal-nullish-coalescing-operator',
],
}
I've solved this problem by adding a transpile directive into vue.config.js:
module.exports = {
transpileDependencies: ["vue-notion"]
}
Hello, guys! I try to use the vue-notion on a fresh installation of Vuejs 3.
So, my first step is
vue create <project>
. I choose vuejs3, babel, router, vuex, SCSS (based on dart-sass). Then, I install vue-notion:All is fine. My package.json looks fresh and clear:
It looks like I'm ready to use NotionRenderer. So, I'm getting your the Basic Example and adding the following line into Home.vue file:
import { NotionRenderer } from 'vue-notion'
and what the heck - my build is broken:It looks like the problem is the nullish coalescing operator (??) on the 1793 line (when I commented the line - the build was successful). But why? How can I fix it? What loader should I use?