-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
build fails in webpack/creact react app because webpack can't find the precompiled code #49
Comments
@r3wt can you provide exact reproduction steps please? |
@ErisDS I take it you don't have experience with create-react-app? basically to reproduce just:
|
Hi @r3wt 👋 Can you try upgrading to the new 1.2.0 version to see if that works? I tracked down the issue and left a more extensive writeup here if you're interested #67 (comment) |
naz
pushed a commit
to naz/Ghost-SDK
that referenced
this issue
Sep 24, 2020
closes TryGhost#49, closes TryGhost#67 - ensures our UMD builds are correctly transpiled for wide browser support including any necessary polyfills - adds ES builds with the same transpilation and polyfills as the UMD build, referenced under the "module" config in package.json for use in projects with build environments
naz
pushed a commit
to naz/Ghost-SDK
that referenced
this issue
Sep 28, 2020
closes TryGhost#49, closes TryGhost#67 - ensures our UMD builds are correctly transpiled for wide browser support including any necessary polyfills - adds ES builds with the same transpilation and polyfills as the UMD build, referenced under the "module" config in package.json for use in projects with build environments
naz
pushed a commit
to naz/Ghost-SDK
that referenced
this issue
Sep 28, 2020
closes TryGhost#49, closes TryGhost#67 - ensures our UMD builds are correctly transpiled for wide browser support including any necessary polyfills - adds ES builds with the same transpilation and polyfills as the UMD build, referenced under the "module" config in package.json for use in projects with build environments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
create react app disallows compiling code from outside the source directory, so it relies on modules to provide their code transpiled to es5 or whatever. for some reason this isn't working with your package for
@tryghost/content-api
. i am looking for a work around to get my build working again. i don't know much about this, if you can offer any insight i would appreciate it.for now i am working around it by copying
lib/index.js
directly to my project src, so it can be compiled.The text was updated successfully, but these errors were encountered: