通过使用下面建议的补丁,数据字段似乎填充正常,但是,媒体字段未填充。
尝试了以下但没有运气 -
* http://localhost:1337/api/pages?populate=*
* {{protocol}}://{{host}}:{{port}}/api/pages?populate[Content][populate]=images
Run Code Online (Sandbox Code Playgroud)
下面的示例来自 - https://forum.strapi.io/t/strapi-v4-populate-media-and-dynamiczones-from-components/12670/9
还尝试了这个插件(没有运气) - https://www.npmjs.com/package/strapi-plugin-populate-deep
下面带有动态区域的页面示例 -
/helpers/populate.js(这适用于除图像之外的所有数据)-
const { createCoreController } = require("@strapi/strapi/lib/factories");
function populateAttribute({ components }) {
if (components) {
const populate = components.reduce((currentValue, current) => {
return { ...currentValue, [current.split(".").pop()]: { populate: "*" } };
}, {});
return { populate };
}
return { populate: "*" };
}
const getPopulateFromSchema = function (schema) {
return Object.keys(schema.attributes).reduce((currentValue, current) => {
const attribute = schema.attributes[current];
if (!["dynamiczone", "component"].includes(attribute.type)) …Run Code Online (Sandbox Code Playgroud) 我在2015年4月27日使用最新的离子盒.我ionic platform add android在以下情况下遇到以下错误ionic build android:
[Error: Please install Android target: "android-22".
Hint: Open the SDK manager by running: /home/vagrant/android-sdk-linux/tools/android
You will require:
1. "SDK Platform" for android-22
2. "Android SDK Platform-tools (latest)
3. "Android SDK Build-tools" (latest)]
Run Code Online (Sandbox Code Playgroud)
我尝试使用以下命令更新sdk
android update sdk --no-ui
Run Code Online (Sandbox Code Playgroud)
在哪里我得到了一些未找到的" https://dl-ssl.google.com/android*"文件的输出.但是,如果我复制该URL并将其粘贴到浏览器上,那么文件就在那里.
我的流浪盒现在已经在网络上桥接,可以直接访问互联网,因为NAT给了我同样的错误.
任何帮助深表感谢.
在El Capitan下从命令行"ionic run ios --device"运行时发现ios-deploy not found错误.已经重新安装了离子和节点,仍然没有运气.
这个插件一直工作得很漂亮,直到昨晚.只有在更新到最新的Ionic/Cordova之后才能在iOS上获得以下错误(android很好).
更新至: xcode版本7.2.1离子版本1.7.14
我还测试了同一个应用程序与另一个运行以前版本的离子1.7.13和cordova 6的mac,一切都很好.
在使用旧版本测试后,我使用最新的离子设置构建了一个新的mac(新鲜的妻子笔记本电脑),并再次出现相同的错误.
这是有问题的插件https://ionicthemes.com/tutorials/about/native-facebook-login-with-ionic-framework
以下构建命令失败: CompileC build/testFresh.build/Debug-iphonesimulator/testFresh.build/Objects-normal/i386/FacebookConnectPlugin.o testFresh/Plugins/phonegap-facebook-plugin/FacebookConnectPlugin.m normal i386 objective-c com. apple.compilers.llvm.clang.1_0.compiler(1次失败)
ERROR运行一个或多个平台:错误代码65用于命令:xcodebuild with args:/ Applications/AMPPS/www/ionic/testFresh/platforms/ios/cordova/build-debug.xcconfig,-project,testFresh. xcodeproj,ARCHS = I386,-target,testFresh, - 构型,调试-sdk,iphonesimulator,构建,VALID_ARCHS = I386,CONFIGURATION_BUILD_DIR = /应用/ AMPPS/WWW /离子/ testFresh /平台/ IOS /建造/仿真器,SHARED_PRECOMPS_DIR =/Applications/AMPPS/www/ionic/testFresh/platforms/ios/build/sharedpch您可能没有运行此项目所需的环境或操作系统
我可以在本地运行我的scrapy没有任何问题,但是,当我尝试从scrapinghub运行工作时我得到以下错误(连接到mongo atlas云):
exceptions.ImportError: No module named pymodm
Run Code Online (Sandbox Code Playgroud)
我导入使用:
import pymodm
Run Code Online (Sandbox Code Playgroud)
任何帮助深表感谢.
干杯