Код: Выделить всё
Error: While trying to resolve module `@test-org/mylib` from file `/private/var/folders/.../build/apps/test-app/src/app/App.tsx`, the package `/private/var/folders/.../build/node_modules/@test-org/mylib/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/private/var/folders/.../build/node_modules/@test-org/mylib/dist/index.js`. Indeed, none of these files exist.
Код: Выделить всё
import { mylib } from '@test-org/mylib';
Код: Выделить всё
nx g @nx/js:lib libs/mylib
Код: Выделить всё
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
"emitDeclarationOnly": false,
"module": "nodenext",
"moduleResolution": "nodenext",
"forceConsistentCasingInFileNames": true,
"types": ["node"]
},
"include": ["src/**/*.ts"],
"references": []
}
Код: Выделить всё
nx generate @nx/react-native:library
Почему моя сборка Expo не может импортировать мою библиотеку? Использую ли я правильную библиотеку, и если да, то какую конфигурацию мне нужно изменить, чтобы сборка Expo заработала?
Подробнее здесь: https://stackoverflow.com/questions/797 ... g-eas-buil
Мобильная версия