Tag Archives:

[Solved] (6) Axios error reporting, cannot read property ‘protocol’ of undefined

After NPM run build package is run in the project built by Vue cli, an error is reported

Cannot read property 'protocol' of undefined

Locate the error in the router file. From the cause of routing, the problem appears in the Axios application mode. Because Vue resource was used before, its usage mode is as follows:

/*Introducing the Resource Request plugin*/
import Resource from 'vue-resource'

/*Using the VueResource plugin*/
Vue.use(Resource)

However, when I change it to Axios, according to his way, although the local runtime is OK, the above errors will appear after packaging. The correct way should be

After introducing the Axios plug-in, assign it to Vue. Prototype. $HTTP, and use the VM. $http. Get () method directly

Filesystem.squashfs error in installing Ubuntu – solution (for reference)

SquashfsErrors:

unable to boot from the Ubuntu LiveCD, due to SquashFS errors like this:

SQUASHFS error: sb_bread failed reading block 0x9d7f3
SQUASHFS error: Unable to read fragment cache block [275faa28]
SQUASHFS error: Unable to read page, block 275faa28, size 23a7

method1:adding the ide=nodma or acpi=off allowed them to work around this issuemethod2:

You can add those lines to the grub entry, either in the grub.conf file or either entering letter ‘e’ on the grub menu and after editing Control+x to boot:

Add to the grub line:

all_generic_ide pci=nommconf

Add to the kernel line:

ide=nodma acpi=off