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

parcel doesn't export correctly the functions #175

Closed
vmarchaud opened this Issue Oct 8, 2018 · 3 comments

Comments

2 participants
@vmarchaud
Contributor

vmarchaud commented Oct 8, 2018

Since i started working on this project, i had every time when serving the project had an error like :

Uncaught TypeError: Cannot read property 'create' of undefined
    at Object.parcelRequire.62.aphrodite (style.ts:46)
    at newRequire (speedscope.0c5f66b3.js:48)
    at localRequire (speedscope.0c5f66b3.js:54)
    at Object.parcelRequire.103.aphrodite (flamechart-style.ts:2)
    at newRequire (speedscope.0c5f66b3.js:48)
    at localRequire (speedscope.0c5f66b3.js:54)
    at Object.parcelRequire.35.inline-style-prefixer/static/plugins/calc (index.js:10)
    at newRequire (speedscope.0c5f66b3.js:48)
    at localRequire (speedscope.0c5f66b3.js:54)
    at Object.parcelRequire.51.preact (profile-table-view.tsx:2)

I believe there is a problem with the hot-reloading, at some point when i switch from master to old commit / branch that parcel finally export the function and i'm able to use it.
I never used parcel before so i don't know where to search the problem, if you have any idea i would happily try to debug

@jlfwong

This comment has been minimized.

Show comment
Hide comment
@jlfwong

jlfwong Oct 8, 2018

Owner

Yeah, I think there are some bugs in parcel's cache invalidation scheme. It's really annoying, but what I've done in this circumstance is to just do rm -rf .cache and then restart parcel. Super annoying.

Owner

jlfwong commented Oct 8, 2018

Yeah, I think there are some bugs in parcel's cache invalidation scheme. It's really annoying, but what I've done in this circumstance is to just do rm -rf .cache and then restart parcel. Super annoying.

@jlfwong

This comment has been minimized.

Show comment
Hide comment
@jlfwong

jlfwong Oct 8, 2018

Owner

I'm going to close this for now since this is a bug in parcel as far as I can tell, and don't think there's anything actionable to do in speedscope short of switching to a different bundler (all of which have their own unique set of issues).

Owner

jlfwong commented Oct 8, 2018

I'm going to close this for now since this is a bug in parcel as far as I can tell, and don't think there's anything actionable to do in speedscope short of switching to a different bundler (all of which have their own unique set of issues).

@jlfwong jlfwong closed this Oct 8, 2018

@vmarchaud

This comment has been minimized.

Show comment
Hide comment
@vmarchaud

vmarchaud Oct 8, 2018

Contributor

Yeah, i believe its okay to close it but it would be preferable to add a section in the contributing readme so new developer can know that (and avoid spending hour waiting for parcel to refresh its cache ^^)

Contributor

vmarchaud commented Oct 8, 2018

Yeah, i believe its okay to close it but it would be preferable to add a section in the contributing readme so new developer can know that (and avoid spending hour waiting for parcel to refresh its cache ^^)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment