Typescript nativescript-您可能需要适当的加载程序来处理此文件类型,目前没有配置加载程序来处理此文件
当我做tns准备ios时,我总是会遇到这个错误。 我觉得它以前工作过,但在某个时候,它停止工作并抛出错误消息。 它似乎在寻找加载器,但我不确定如何配置它。 有什么想法吗 这是我的webpack.config.jsTypescript nativescript-您可能需要适当的加载程序来处理此文件类型,目前没有配置加载程序来处理此文件,typescript,webpack,nativescript,loader,Typescript,Webpack,Nativescript,Loader,当我做tns准备ios时,我总是会遇到这个错误。 我觉得它以前工作过,但在某个时候,它停止工作并抛出错误消息。 它似乎在寻找加载器,但我不确定如何配置它。 有什么想法吗 这是我的webpack.config.js module.exports = (env) => { webpack.init(env); // Learn how to customize: // https://docs.nativescript.org/webpack retur
module.exports = (env) => {
webpack.init(env);
// Learn how to customize:
// https://docs.nativescript.org/webpack
return webpack.resolveConfig();
};
这是我的pacage.json
"name": "@nativescript/template-hello-world-ng",
"main": "src/main.ts",
"version": "8.0.5",
"author": "NativeScript Team <oss@nativescript.org>",
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"publishConfig": {
"access": "public"
},
"files": [
"App_Resources",
"hooks",
"src",
"tools",
"!tools/assets",
".editorconfig",
"references.d.ts",
"tsconfig.json"
],
"keywords": [
"nativescript",
"mobile",
"angular",
"{N}",
"template"
],
"repository": "<fill-your-repository-here>",
"bugs": {
"url": "https://github.com/NativeScript/NativeScript/issues"
},
"dependencies": {
"@angular/animations": "^11.2.11",
"@angular/common": "^11.2.11",
"@angular/compiler": "^11.2.11",
"@angular/core": "^11.2.11",
"@angular/forms": "^11.2.11",
"@angular/platform-browser": "^11.2.11",
"@angular/platform-browser-dynamic": "^11.2.11",
"@angular/router": "^11.2.11",
"@nativescript/angular": "~11.8.0",
"@nativescript/core": "^8.0.2",
"@nativescript/theme": "~3.0.1",
"@nstudio/nativescript-snackbar": "^2.1.0",
"nativescript-clipboard": "^2.1.1",
"reflect-metadata": "~0.1.13",
"rxjs": "~6.6.7",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular/compiler-cli": "^11.2.11",
"@nativescript/ios": "8.0.0",
"@nativescript/types": "^8.0.1",
"@nativescript/webpack": "beta",
"@ngtools/webpack": "^11.2.10",
"typescript": "~4.0.0"
},
"private": "true",
"readme": "NativeScript Application",
"scripts": {
"ip11": "tns run ios --device 'iPhone 11'"
}
}
这与网页包无关。 由于某些原因,我的@nativescript/core被删除。
所以,我只需要做
npmi@nativescript/core
这与webpack无关。
由于某些原因,我的@nativescript/core被删除。
因此,我只需执行
npm I@nativescript/core
一个拉取请求和补丁更新就可以发布:
@nativescript/core8.0.3
请看这里:
只需确保您的项目正在使用:
@nativescript/core: ~8.0.0
然后:
ns clean
为此发布了拉取请求和修补程序更新,其中包括:
@nativescript/core8.0.3
请看这里:
只需确保您的项目正在使用:
@nativescript/core: ~8.0.0
然后:
ns clean
我收到了相同的错误,将我的应用程序从6.5迁移到8.0.2。您还做了什么,因为@nativescript/core包没有在这里删除。看起来你也没有丢失它,因为它找到了./node_modules/@nativescript/core/ui/core/view base/index.js文件。我遇到了同样的错误,将我的应用程序从6.5迁移到8.0.2。您还做了什么,因为@nativescript/core包没有在这里删除。看起来你也没有丢失它,因为它找到了./node_modules/@nativescript/core/ui/core/view base/index.js文件