Skip to content

TypeError: Cannot read property 'properties' of undefined while building to production #10

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

Closed
MNITD opened this issue Oct 14, 2018 · 3 comments

Comments

@MNITD
Copy link

MNITD commented Oct 14, 2018

When I was trying to build project with npm run build, I got following error:
image

Error is referring to webpack and webpack-cli, the issue says it becouse of some build updates and can be fixed by updating to latest version of webpack and webpack-cli

So after updating with npm i webpack@latest webpack-cli@latest -D project is now successfuly building

Could you please update this dependencies to latest versions?

@YuriiNskyi
Copy link
Contributor

+1 to author, I would also suggest to update svelte-loader version, to prevent this bug.

@JordanShurmer
Copy link
Contributor

PR #11 fixes this

@JordanShurmer
Copy link
Contributor

You can fix it in your project locally if you want. Or use the branch that PR #11 is coming from as your degit source.

# Update all dependencies
npm install -g npm-check-updates
ncu -u

Also should replace the deprecated webpack-serve with webpack-dev-server

npm uninstall --save-dev webpack-serve
npm install --save-dev webpack-dev-server

Then update the scripts.dev script in webpack.json to simply be "webpack-dev-server"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants