You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An internal component that holds the mocks for the tests and is comprised of .json files for the tests in the first component.
When installing the first component, it doesn't seem to find the mock component.
Expected Behavior
Component should get installed and find all dependencies
Actual Behavior
Component dependency was not found.
It appears that the typescript compiler tried to compile json files
Error: Cannot find module '@bit/open-apis.apis.internal.mocks/dist/toxic-avenger-search.json'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.resolve (internal/modules/cjs/helpers.js:30:19)
at /Users/oded/code/check-imdb/node_modules/@bit/open-apis.apis.imdb/.bit.postinstall.js:27:32
at Array.map ()
at Object. (/Users/oded/code/check-imdb/node_modules/@bit/open-apis.apis.imdb/.bit.postinstall.js:24:23)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Description
I have exported 2 components.
When installing the first component, it doesn't seem to find the mock component.
Expected Behavior
Component should get installed and find all dependencies
Actual Behavior
Component dependency was not found.
It appears that the typescript compiler tried to compile json files
Output:
error /Users/oded/code/check-imdb/node_modules/@bit/open-apis.apis.imdb: Command failed.
Exit code: 1
Command: node .bit.postinstall.js
Arguments:
Directory: /Users/oded/code/check-imdb/node_modules/@bit/open-apis.apis.imdb
Output:
internal/modules/cjs/loader.js:584
throw err;
^
Error: Cannot find module '@bit/open-apis.apis.internal.mocks/dist/toxic-avenger-search.json'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.resolve (internal/modules/cjs/helpers.js:30:19)
at /Users/oded/code/check-imdb/node_modules/@bit/open-apis.apis.imdb/.bit.postinstall.js:27:32
at Array.map ()
at Object. (/Users/oded/code/check-imdb/node_modules/@bit/open-apis.apis.imdb/.bit.postinstall.js:24:23)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: