我试图用最小的配置来配置一个项目。我想使用VueJS和类型记录。
我将vue.js文件和脚本添加到我的主页:
<script src="~/lib/vue/dist/vue.js"></script>
<script src="~/js/site.js" ></script>
一切都很好。
但是,如果我想使用类型记录,则找不到Vue类:
Symbol 'Vue' cannot be properly resolved, probably it is located in inaccessible m
我正在尝试弄清楚如何创建一个实时聊天应用程序,该应用程序使用Vue.js作为前端,Node.js作为后端和socket.io。 我已经使用express-generator生成了我的后端Node.js项目,可以在http://localhost:3000上访问该项目。在这个项目中,我有一个包含以下内容的index.js文件: var express = require('express');
var http = require('http').createServer(express);
var io = require('socket.io'
在我的functions.php文件中,我有这样的代码: // Load both vue from the CDN as well as the scripts for the slideout cart and checkout
function load_vue_scripts()
{
$scriptpath = (get_stylesheet_directory_uri() . "/vue/slideout-cart/dist/slideout-cart.js");
wp_register_script('vuejs_source',