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
I was trying out the fix for #139 and while it does resolve the issue with vue/server-renderer, it's also uncovered some issues with other imports from vue.
Expected Behavior
Applications which import functions from vue will work fine when the import-in-the-middle hook is loaded.
Actual Behavior
I get the following error when running a script which imports from vue.
SyntaxError: The requested module 'vue' does not provide an export named 'ref'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:131:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:213:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:66:12)
Node.js v20.9.0
Steps to Reproduce the Problem
Create index.mjs
import{ref}from'vue'console.log('hello world')
Run with node --loader=import-in-the-middle/hook.mjs index.mjs
Specifications
Version: 1.9.1
Platform: MacOS
Subsystem:
The text was updated successfully, but these errors were encountered:
I was trying out the fix for #139 and while it does resolve the issue with
vue/server-renderer
, it's also uncovered some issues with other imports from vue.Expected Behavior
Applications which import functions from
vue
will work fine when the import-in-the-middle hook is loaded.Actual Behavior
I get the following error when running a script which imports from vue.
Steps to Reproduce the Problem
index.mjs
node --loader=import-in-the-middle/hook.mjs index.mjs
Specifications
The text was updated successfully, but these errors were encountered: