Is it possible to use a component without having npm?
I'm trying to make https://www.npmjs.com/package/vue-bootstrap4-table#4-basic-usage work but it fails.
I can't import component inside html file.
Tried:
import VueBootstrap4Table from 'vue-bootstrap4-table';
app = new Vue({
el: '#app',
data: {
rows: [{
Here is the fiddle.
What is wrong with this code?
import VueBootstrap4Table from 'vue-bootstrap4-table';a) you need webpack (or another bundler) to resolve the import, b) webpack will try to resolve the import from thenode_modulesfolder (which you won't have without npm). Just use npm. It's the way to go. Any attempt on using any modern packages or frameworks without npm is bound to fail.importstatements if they're inside a module and not a JS import. The path has to be a valid URL, standard URL rules apply (absolute, relative, etc...), the file extension should be.mjs, and you can use a tool likeunpkg.meto get a URL to what is normally a node package. I'm not saying I'd recommend this for a production project but the question doesn't sound like it's asking about production code.