← All tasks
javascriptmoment/luxon #1238Not a task: not reproduced

Pod install fails with react-native build which includes luxon

envgap__moment__luxon-1238

01 / FAILURE SIGNATURE

As reported upstream

For a react-native project; can't install luxon and `pod install`. Reported error is..
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
4fe7be9d5afa7afdf36b4bb9ad116d160c0881f5
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

moment/luxon #1238 · read the original issue
**Describe the bug**

For a react-native project; can't install luxon and `pod install`. Reported error is..



```

[!] Invalid `Podfile` file: 783: unexpected token at 'Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in /Users/Andy/Development/ajp/AwesomeProject/node_modules/luxon/package.json



    at new NodeError (node:internal/errors:388:5)



    at throwExportsNotFound (node:internal/modules/esm/resolve:440:9)



    at packageExportsResolve (node:internal/modules/esm/resolve:719:3)



    at resolveExports (node:internal/modules/cjs/loader:488:36)



    at Module._findPath (node:internal/modules/cjs/loader:528:31)



    at Module._resolveFilename (node:internal/modules/cjs/loader:932:27)



    at Function.resolve (node:internal/modules/cjs/helpers:108:19)



    at resolveNodeModuleDir (/Users/Andy/Development/ajp/AwesomeProject/node_modules/@react-native-community/cli-tools/build/resolveNodeModuleDir.js:24:42)



    at /Users/Andy/Development/ajp/AwesomeProject/node_modules/@react-native-community/cli-config/build/loadConfig.js:93:76



    at Array.reduce (<anonymous>)



info Run CLI with --verbose flag for more details.

'.

```



**To Reproduce**

1. Create new react native project using `npx react-native init AwesomeProject`

2. `cd AwesomeProject && npm i && cd ios && pod install && cd ..`

3. `npm i luxon`

4. `cd ios && pod install` => produces error stated above



Works => `npm uninstall luxon && cd ios && pod install`



**Actual vs Expected behavior**

Expect the project to build.



**Desktop (please complete the following information):**



- Node 18.4.0

- Luxon version 3.0.1

- Ruby 2.7.5

- Cocoapods 1.11.3



**Additional context**

React native project uses react 18 and RN 0.69.1

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]