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

import bug #69

Open
GildasMorel opened this issue Aug 3, 2020 · 5 comments
Open

import bug #69

GildasMorel opened this issue Aug 3, 2020 · 5 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed
Milestone

Comments

@GildasMorel
Copy link
Collaborator

GildasMorel commented Aug 3, 2020

1- Create a file src/plugins/plugin.js with code :

export class Plugin {
    constructor() {
        this.callbacks = [];
    }

    onEvent(callback) {
        this.callbacks.push(callback);
    }
}

2 - Add to keyboard and touch index.js plugin file :

import { Plugin } from '@plugins/plugin.js';

Error :
Uncaught (in promise) Error: Cannot find module '../../plugins/plugin.js'

If you add import only on one plugin, it's ok.
Seems like a parcel problem with plugin-loader.js

@GildasMorel GildasMorel added the bug Something isn't working label Aug 3, 2020
@GildasMorel GildasMorel added this to the One day milestone Aug 3, 2020
@GildasMorel GildasMorel added the help wanted Extra attention is needed label Aug 3, 2020
@Augani
Copy link

Augani commented Aug 3, 2020

Hello, can i take this?

@GildasMorel
Copy link
Collaborator Author

GildasMorel commented Aug 3, 2020 via email

@GildasMorel
Copy link
Collaborator Author

Hello @Augani,

Did you find any clue for this issue ?

Gildas.

@Augani
Copy link

Augani commented Aug 4, 2020

Hello @GildasMorel , looking into it now. Will revert shortly

@GildasMorel
Copy link
Collaborator Author

Waiting for issue #83 to be completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants