Started Metro Bundler iOS Bundling failed 1903ms App.js:C:\Users\Tomiwa Kukoyi\Desktop\infocrypto\infocrypto\App.js:使用process(css).then(cb)来使用PHP插件
这是我一直得到的错误,我使用yarn,我也使用了文档,并遵循了所有内容
我的tailwind配置文件
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./App.{js,jsx,ts,tsx}"],
theme: {
extend: {},
},
plugins: [],
};
// babel.config.js
module.exports = {
presets: ["babel-preset-expo"],
plugins: ["nativewind/babel"],
};
babel coonfig文件
{
"name": "infocrypto",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
},
"dependencies": {
"babel-preset-expo": "^9.5.2",
"expo": "~49.0.11",
"expo-status-bar": "~1.6.0",
"nativewind": "^2.0.11",
"react": "18.2.0",
"react-dom": "^18.2.0",
"react-native": "0.72.4",
"react-native-web": "~0.19.6"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"tailwindcss": "^3.3.3"
},
"private": true
}
package.json文件
2条答案
按热度按时间b0zn9rqh1#
Tailwind版本
3.3.3
不适用于当前版本的Nativewind(2.0.11)。3.3.2
:node_modules
文件夹和.lock
文件并重新安装npm包。expo start --clear
并重试。kx5bkwkv2#
yarn add tailwindcss 3.3.2 --dev and restart your server delete your node modules and delete lock file and run yarn