Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marko is not defined when index.marko imports module from component.ts #2091

Open
bill-min opened this issue Jan 25, 2024 · 0 comments
Open
Labels
type:unverified bug A bug report that has not been verified

Comments

@bill-min
Copy link

Marko Version: 5.32.7

Details

In any component, if you have:

index.marko

import { MY_ENUM } from "./component.ts"

<div>
  ${MY_ENUM.TEST}
</div>

component.ts

export interface Input {}

export enum MY_ENUM {
  TEST
}

export default class extends Marko.Component<Input> {}

It will cause error Marko is not defined. This happens to me when running storybook (with vite).

Expected Behavior

Should work without error.

Actual Behavior

Marko is not defined

Possible Fix

Additional Info

Your Environment

  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop or mobile):
  • Link to your project:

Steps to Reproduce

  1. first...

Stack Trace

@bill-min bill-min added the type:unverified bug A bug report that has not been verified label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:unverified bug A bug report that has not been verified
Projects
None yet
Development

No branches or pull requests

1 participant