Skip to content

[Meteor] Spiderable goes into tests #29

Closed
@StorytellerCZ

Description

@StorytellerCZ

I've run into a problem with the latest version (2.1) version of this package where Spiderable starts accessing/compiling files that it should not, specifically in my case it tries to work through tests files which includes const { name } = await import('../package.json') and that trips it and prevents it from the Meteor app being build with the following error:

W20250212-22:58:33.057(1)? (STDERR) packages/core-runtime.js:189
W20250212-22:58:33.065(1)? (STDERR)             throw error;
W20250212-22:58:33.066(1)? (STDERR)             ^
W20250212-22:58:33.066(1)? (STDERR) 
W20250212-22:58:33.066(1)? (STDERR) Error: Cannot find module '../package.json'
W20250212-22:58:33.067(1)? (STDERR)     at makeMissingError (packages/modules-runtime.js:221:12)
W20250212-22:58:33.067(1)? (STDERR)     at Module.require (packages/modules-runtime.js:240:17)
W20250212-22:58:33.067(1)? (STDERR)     at Module.mod.require (/home/storyteller/.meteor/packages/modules/.0.20.3.1l9ud9l9blw++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/@meteorjs/reify/lib/runtime/index.js:30:33)
W20250212-22:58:33.068(1)? (STDERR)     at require (packages/modules-runtime.js:257:21)
W20250212-22:58:33.068(1)? (STDERR)     at packages/ostrio:spiderable-middleware/lib/index.js:42:22
W20250212-22:58:33.069(1)? (STDERR)     at module (packages/ostrio:spiderable-middleware/lib/index.js:486:6)
W20250212-22:58:33.069(1)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:335:7)
W20250212-22:58:33.069(1)? (STDERR)     at Module.require (packages/modules-runtime.js:237:14)
W20250212-22:58:33.069(1)? (STDERR)     at Module.mod.require (/home/storyteller/.meteor/packages/modules/.0.20.3.1l9ud9l9blw++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/@meteorjs/reify/lib/runtime/index.js:30:33)
W20250212-22:58:33.070(1)? (STDERR)     at Object.require (packages/modules-runtime.js:257:21)
W20250212-22:58:33.070(1)? (STDERR)     at evaluateNextModule (packages/core-runtime.js:167:26)
W20250212-22:58:33.070(1)? (STDERR)     at runEagerModules (packages/core-runtime.js:206:3)
W20250212-22:58:33.070(1)? (STDERR)     at processNext (packages/core-runtime.js:128:3)
W20250212-22:58:33.071(1)? (STDERR)     at packages/core-runtime.js:138:5
W20250212-22:58:33.071(1)? (STDERR)     at evaluateNextModule (packages/core-runtime.js:163:14)
W20250212-22:58:33.071(1)? (STDERR)     at evaluateNextModule (packages/core-runtime.js:202:7)
W20250212-22:58:33.071(1)? (STDERR)     at processNext (packages/core-runtime.js:128:3)
W20250212-22:58:33.072(1)? (STDERR)     at packages/core-runtime.js:138:5
W20250212-22:58:33.072(1)? (STDERR)     at evaluateNextModule (packages/core-runtime.js:163:14)
W20250212-22:58:33.072(1)? (STDERR)     at evaluateNextModule (packages/core-runtime.js:202:7)
W20250212-22:58:33.072(1)? (STDERR)     at runEagerModules (packages/core-runtime.js:206:3)
W20250212-22:58:33.072(1)? (STDERR) 
W20250212-22:58:33.072(1)? (STDERR) Node.js v22.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions