Build not copying "events" from node_modules
leoj3n opened this issue · 2 comments
It would appear the events
package is missing from the bundle. Here is npm ls events
:
bitcentivez-client@0.0.1 /Users/leoj/src/bitcentivez/client
├─┬ @feathersjs/feathers@3.2.3
│ └── events@3.0.0
├─┬ can@5.15.1
│ └─┬ can-connect-feathers@5.0.0
│ └─┬ feathers-authentication-popups@0.1.2
│ └── events@1.1.1
├─┬ steal@2.1.6
│ └── events@1.1.1
└─┬ testee@0.8.1
└─┬ feathers@2.2.4
└── events@1.1.1
The error manifests like this within the frontend app:
If I update my build npm run-script to manually copy the events
package from node_modules
, the frontend app loads without errors because it can now find the file it was looking for:
Original build script:
"build": "rm -rf ./prod && mkdir ./prod && node build && mv ./dist ./prod && cp ./package.json ./favicon.ico ./prod",
Updated build script:
"build": "rm -rf ./prod && mkdir ./prod && node build && cp -r ./node_modules/events ./dist/node_modules && mv ./dist ./prod && cp ./package.json ./favicon.ico ./prod",
There are no other missing scripts causing errors like this, so I wonder if it's something specifically unique to the events
package (perhaps its package.json
is not handled properly).
I wonder if this is related to stealjs/steal#1490
@leoj3n Could you try the latest StealJS and check if this is still an issue please?
@chasenlehara Thanks, this does seem to no longer be an issue. Will reopen if anything changes.