./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!

Execute the packaging command npm run build in the Vue project, and the following error occurs

After deleting the node_modules package, reinstall the package, and found that it still cannot be packaged.

reason:

At the address of the original mirror source, this plug-in can no longer be found, and it has not been installed, resulting in an error in packaging.

Solution:

1. Replace the mirror image source

Change to Taobao mirror source or other sources, delete the node_modules package, and then reinstall the package.

I haven't tried this, I used the following method directly.

 

2. Download the package yourself

As shown in the figure above, search for indent2em and find the download address of the package.

After downloading, unzip it and put it in the corresponding directory, here is tinymce/plugins.

Note that when packing at this time, the same error will still be reported.

The corresponding file cannot be found because the index.js file is missing (it can be copied from other plugins)

index.js file

require('./plugin.js');

OK, now execute npm run build, the packaging will not report an error, I hope it can help you, thank you for liking and collecting!

 

Guess you like

Origin blog.csdn.net/weixin_44331330/article/details/129785130