This repository was archived by the owner on Mar 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Error resolving path import specifiers #16
Copy link
Copy link
Open
Labels
Type: BugSomething isn't workingSomething isn't working
Description
The middleware appears to be trying to resolve import specifiers that are already paths, and erroring that it cannot resolve them. It should be ignoring them altogether:
Unable to resolve Node module specifier "./index-1.js" due to { Error: Cannot find module './index-1.js' from '/Users/aomarks/git/benchmarks/polymer/'
at Function.module.exports [as sync] (/Users/aomarks/git/benchmarks/node_modules/resolve/lib/sync.js:71:15)
at Object.exports.resolveNodeSpecifier (/Users/aomarks/git/benchmarks/node_modules/koa-node-resolve/src/support/resolve-node-specifier.ts:26:44)
at koa_module_specifier_transform_1.moduleSpecifierTransform (/Users/aomarks/git/benchmarks/node_modules/koa-node-resolve/src/koa-node-resolve.ts:41:51)
at countedSpecifierTransform (/Users/aomarks/git/benchmarks/node_modules/koa-node-resolve/src/koa-module-specifier-transform.ts:133:26)
at enter (/Users/aomarks/git/benchmarks/node_modules/koa-node-resolve/src/transform-js-module.ts:27:42)
at NodePath._call (/Users/aomarks/git/benchmarks/node_modules/@babel/traverse/lib/path/context.js:53:20)
at NodePath.call (/Users/aomarks/git/benchmarks/node_modules/@babel/traverse/lib/path/context.js:40:17)
at NodePath.visit (/Users/aomarks/git/benchmarks/node_modules/@babel/traverse/lib/path/context.js:88:12)
at TraversalContext.visitQueue (/Users/aomarks/git/benchmarks/node_modules/@babel/traverse/lib/context.js:118:16)
at TraversalContext.visitMultiple (/Users/aomarks/git/benchmarks/node_modules/@babel/traverse/lib/context.js:85:17) code: 'MODULE_NOT_FOUND'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: BugSomething isn't workingSomething isn't working