-
Notifications
You must be signed in to change notification settings - Fork 30
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
npm run build
runs, but > Using adapter-awscdk
step has no output/error and completes in 3ms
#8
Comments
runs, but
> Using adapter-awscdk` step has no output/error and completes in 3msnpm run build
runs, but > Using adapter-awscdk
step has no output/error and completes in 3ms
Hi Mike, In the above-linked example, I see the following steps...
Question: Shouldn't the updates to UPDATE: The following comment in issue#4 appears to correct the above order of steps: #4 (comment) Thanks again for your help. |
Hi @rlyders, sorry for confusing you. Yes, you should update your svelte.config.js mport { adapter } from 'sveltekit-adapter-aws';
import preprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
kit: {
adapter: adapter({
autoDeploy: true,
}),
}
};
export default config; The setting I hope that clarifies the different options a little bit. Regards Mike |
Hi @rlyders , I just had the same problem. I am using Windows (10) right now. While I ran into this problem I tried to remember the OS @MikeBild was using at the workshop. I think it wasn't windows.
So it seems to be somethin not working on Windows, if you (@rlyders) are also using Windows. |
Thanks for your help, @MikeBild, and @dennistruemper! I'll check this out in the next few days and let you know if this helps to resolve my issue. Have a great weekend! |
Hi @MikeBild and @dennistruemper . Thanks again for your feedback. Following your advice, I updated my svelte.config.js and re-ran the npm clean-install and build. Unfortunately, I get the same results: No output, nothing deployed, and no errors. :-) What is most surprising is that there are no errors to work off even when I've enabled debug logging. PS: You guessed correctly that I am running on Windows 10. I should have mentioned that up front! I've tried this in my gitbash terminal and in the PowerShell terminal (shown below) with the same results. svelte.config.js:
Powershell session:
|
Hi @rlyders, powershell and 'git bash' are still using Windows stuff. I did not search for the reason this adapter isn't working on Windows. So using Linux or Mac is the only option right now. WSL (Windows Subsystem for Linux) is an easy way to use Linux in Windows. At least this is what got me to the next step |
So I poked it a bit and found out what where the problem is. On Windows this line throws an error, because the So i used node console on windows and linux (WSL) with this command: On Linux it gets executed on Windows I get an error: To get this command executed on both systems I had to add the So I made a change to the code and tried again, this time I get a cdk output on Windows :-) but also an error: Enough for today. |
Hi @dennistruemper, thank you for figuring out this. 👍 I'll try to fix that ASAP. |
Hi i also am seeing bellow when i run: Using adapter-awscdk nothing much else happens |
Hi @MikeBild, thanks for the step-by-step instructions given in the documentation.
Any tips on why the
> Using adapter-awscdk
step ofnpm run build
doesn't produce any results? I don't find anything uploaded, no output, no errors and it only takes 3ms to complete. NOTE: adding the--debug
parameter tonpm run build
does not result in any additional output in the logs.QUESTION: Is the FQDN in
svelte.config.js
(excerpt shown below) supposed to be populated with value of BucketDomainName in CloudFormation > Stacks > CDKToolkit > Outputs > BucketDomainName? I don't see any FQDN noted for the CloudFormation stack.FYI: I don't see anything specifically labeled as the "FDQN" or "Full qualified domain name of CloudFront deployment" as noted in the example configuration file linked here: https://github.com/MikeBild/sveltekit-adapter-aws#configuration.
PS: By "CloudFront deployment" in the description of the FQDN in the example configuration linked above, did you mean "CloudFormation"? I don't see anything created under CloudFront for this account after running
cdk bootstrap
ornpm run build
.excerpt from
svelte.config.js
When I follow the instructions given above and then run
npm run build
everything appears to build properly, but nothing gets uploaded to AWS CloudFront.My steps...
Below are the full contents of my svelte.config.js:
When I check the AWS CloudFormation stack named "CDKToolkit" (created by the cdk bootstrap command) in the AWS console nothing is shown in the corresponding S3 bucket.
Any help is greatly appreciated. Thanks!
The text was updated successfully, but these errors were encountered: