Open oukjweather opened 4 years ago
@oukjweather - Thanks for the report. A few questions to help us diagnose the issue:
@oukjweather - Thanks for the report. A few questions to help us diagnose the issue:
- What version of node are you running?
- Have you only seen this on Windows machines?
Hi. I'm running node 12.16.1. Yes, the only machine I have access to is Windows 10.
I am having the same issue on Windows. Node version 10.16.3.
@oukjweather This seemed to fix it for me. It looks the issue is with the difference in path separators between Mac/Linux and Windows. Just replace the exclude block in webpack.common.config.js with this code and then run yarn install
and yarn start
.
exclude: function (filePath) {
const filePathContains = (f) => filePath.indexOf(f) > 0;
const s = path.sep;
const npmRequiresTransform = [
`${s}node_modules${s}parse-ms`,
`${s}node_modules${s}@sindresorhus${s}to-milliseconds`
].some(filePathContains);
const shallBeExcluded = [
`${s}node_modules${s}`,
`packages${s}@okta${s}courage-dist${s}jquery.js`,
`packages${s}@okta${s}qtip2`
].some(filePathContains);
return shallBeExcluded && !npmRequiresTransform;
}
Can you try yarn start:playground
instead.
This command will run the playground in watch mode. It depends on concurrently
, which suppose to support Windows
well.
@shuowu-okta I can confirm that the issue still exists with the latest code, and that the fix proposed by @davekats works for me, too, on Windows 10.
:information_source: If you have a question, please post it on the Okta Developer Forum instead. Issues in this repository are reserved for bug reports and feature requests.
I'm submitting a
Background info
Describe your issue or request here (if necessary).
Clone the repo to my local machine. Run the following:
The result I get back is the following in console logs of Chrome (79.0.3945.130):
Expected behavior
What should have happened?
Should have loaded a page with the login widget with no errors.
What went wrong?
Please provide log or error messages if applicable.
Steps to reproduce
If the current behavior is a bug, please provide the steps to reproduce and a minimal demo if possible (you can use this template as a starting point: https://jsfiddle.net/m2gyLq4v/).
Your environment