Open frankxiao1102 opened 5 years ago
@frankxiao1102
This module work with babel v7, for version 6 the original module from miaolz123 work fine.
Same issue here with a fresh new laravel installation
@Mindexperiment @frankxiao1102
Which version of markdown-it is installed in your node_modules? (latest is 8.4.2)
Is the file "markdown-it/lib/token present"?
@Mindexperiment
Do you use Babel 7 and Webpack 4?
Laravel mix 4.0.16 -> Webpack 4.35.0 Laravel mix 4.0.16 -> @Babel/core@7.4.5
https://github.com/JeffreyWay/laravel-mix/blob/master/package.json
@Mindexperiment
And for my other question please?
Ok, wait, by installing vue-markdown-v2@0.1.7 I see there's a dependency to markdown-it@8.4.2 and other markdown-it-abbr/container/deflist so on..
markdown-it/lib/token is not present here is the error I get:
@frankxiao1102
This module work with babel v7, for version 6 the original module from miaolz123 work fine.
It doesn't matter, I have used another package instead of vue-markdown-v2. Thank you.
@Mindexperiment
Tell me if all is fine please?
the full list of dependency
What if uninstall vue-markdown-v2 and totally unistall markdown-it and its plugin, then reinstall all of that ?
I'm not on the project right now, this evening I try to refresh everything and report back, thank you
Just noting here that I encountered the same error after installing vue-markdown-v2
and removing vue-markdown
, in that order.
Reinstalling vue-markdown-v2
as suggested above solved the problem.
Just noting here that I encountered the same error after installing
vue-markdown-v2
and removingvue-markdown
, in that order.Reinstalling
vue-markdown-v2
as suggested above solved the problem.
I made the same thing and it worked.
vue-markdown-v2
vue-markdown
node_modules
vue-markdown-v2
ERROR in ./node_modules/markdown-it-toc-and-anchor/dist/index.js Module not found: Error: Can't resolve 'markdown-it/lib/token' in '/Users/xiaochaohong/Desktop/Project/SensorLive/github/sensor.live-admin/web/node_modules/markdown-it-toc-and-anchor/dist' @ ./node_modules/markdown-it-toc-and-anchor/dist/index.js 12:36-68 @ ./node_modules/vue-markdown-v2/dist/vue-markdown.common.js @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/pages/Admin/AdminIndex.vue @ ./src/pages/Admin/AdminIndex.vue @ ./src/pages/Admin/routes.js @ ./src/router.js @ ./src/app.js @ multi (webpack)-dev-server/client?https://dev-admin.sensor.live:8080 webpack/hot/dev-server ./src/app.js
Here is my package.json