solution provided here对我不起作用:/
运行npm run dev时收到消息
ERROR编译失败,出现1个错误11:21:24
未找到此依赖项:
- ./ node_modules / babel-loader / lib中的mojo / signup-forms / Loader?{“ babelrc”:false,“ cacheDirectory”:true,“ presets”:[[“” D:// Code // frontend / /node_modules//babel-preset-vue-app//dist//index.common.js",{"targets":{"ie":9,"uglify":true}}]]}!../node_modules/ vue-loader / lib / selector.js?type = script&index = 0!./ layouts / default.vue
要安装它,可以运行:npm install --save mojo / signup-forms / Loader
当我尝试安装它时,我会得到
$ npm install-保存mojo / signup-forms / Loader npm ERR!代码ENOLOCAL npm ERR!无法从“ mojo \ signup-forms \ Loader”进行安装 不包含package.json文件。
不确定要做什么。
这是我完整的默认值。vue
Bad Request
答案 0 :(得分:0)
尽管我偶尔在哨兵上收到错误通知,并在“函数showMailingPopUp”行上收到“未定义要求”消息,但我还是做了以下事情。
如果有人可以提供帮助,请告诉我:)至少我有一个起点。
app.html(根文件)
<!DOCTYPE html>
<html {{ HTML_ATTRS }}>
<head>
{{ HEAD }}
</head>
<body {{ BODY_ATTRS }}>
{{ APP }}
<script src="//downloads.mailchimp.com/js/signup-forms/popup/embed.js"></script>
<script>
function showMailingPopUp(){require(["mojo/signup-forms/Loader"],function(i){i.start({baseUrl:"xxxx",uuid:"xxxxx",lid:"xxxx"})})}
</script>
</body>
</html>