Commit 5d5d989
Fix workspace dependency resolution for react-on-rails
**Problem:**
Pro packages were using `react-on-rails: "*"` which resolved to version
16.1.2 from npm instead of the workspace version 16.2.0-beta.12. This
caused webpack build failures in CI when examples imported Pro packages
via relative paths, because:
1. Example pack imports `../../../packages/react-on-rails-pro/lib/ReactOnRails.client.js`
2. Pro file imports `from 'react-on-rails/@internal/base/client'`
3. Webpack resolves from Pro package location, finding old 16.1.2 in node_modules
4. Old package.json lacks required exports like `./@internal/base/client`
**Solution:**
Changed Pro package dependencies from `"*"` to `"^16.2.0-beta.12"` to
ensure workspace version is used. Yarn now properly hoists the workspace
package to root node_modules.
**Errors Fixed:**
```
Module not found: Error: Package path ./pageLifecycle is not exported
Module not found: Error: Package path ./context is not exported
Module not found: Error: Package path ./@internal/base/client is not exported
```
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent d5151db commit 5d5d989
File tree
3 files changed
+2308
-2518
lines changed- packages
- react-on-rails-pro-node-renderer
- react-on-rails-pro
3 files changed
+2308
-2518
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments