# Problem with webpack import

**URL:** <https://forum.elixirforum.com/t/problem-with-webpack-import/25254>\
**Category:** Questions\
**Tags:** phoenix, webpack\
**Created:** [September 8, 2019, 7:20pm UTC](https://forum.elixirforum.com/t/problem-with-webpack-import/25254 "2019-09-08T19:20:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kokolegorille](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kokolegorille/32/4784_2.png) [@kokolegorille](https://forum.elixirforum.com/u/kokolegorille)\
**Post date:** [September 9, 2019, 1:11am UTC](https://forum.elixirforum.com/t/problem-with-webpack-import/25254/3 "2019-09-09T01:11:19Z")

</div>

> [@csisnett](#):
>
> SyntaxError: import declarations may only appear at top level of a module app.js:2

This error means You might have an import statement in the middle of a file, and not a the top.

---

_[View the full topic](https://forum.elixirforum.com/t/problem-with-webpack-import/25254)._
